|
|
@ -12,7 +12,6 @@ export class ConnectionList extends BI.LoadingPane { |
|
|
|
model: ConnectionListModel['model']; |
|
|
|
model: ConnectionListModel['model']; |
|
|
|
|
|
|
|
|
|
|
|
groupWidget: any; |
|
|
|
groupWidget: any; |
|
|
|
loadingBar: any; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
beforeInit(cb: Function) { |
|
|
|
beforeInit(cb: Function) { |
|
|
|
this.store.setConnections().then(() => { |
|
|
|
this.store.setConnections().then(() => { |
|
|
@ -24,12 +23,6 @@ export class ConnectionList extends BI.LoadingPane { |
|
|
|
connections: () => { |
|
|
|
connections: () => { |
|
|
|
this.groupWidget.populate(this.renderList()); |
|
|
|
this.groupWidget.populate(this.renderList()); |
|
|
|
}, |
|
|
|
}, |
|
|
|
showItemNum: () => { |
|
|
|
|
|
|
|
this.groupWidget.addItems(this.renderList(this.model.showItemNum - 50)); |
|
|
|
|
|
|
|
BI.size(this.model.connections) > this.model.showItemNum ? |
|
|
|
|
|
|
|
this.loadingBar.setLoaded() : |
|
|
|
|
|
|
|
this.loadingBar.setEnd(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
render() { |
|
|
|