Modify issue about endpoint delection unfreash page

This commit is contained in:
pfh 2018-01-26 15:03:29 +08:00
parent 791004c1b5
commit 1dc6e57ffd
3 changed files with 4 additions and 3 deletions

View File

@ -185,7 +185,7 @@ export class EndpointComponent implements OnInit, OnDestroy {
if (targetLists && targetLists.length) {
let promiseLists: any[] = [];
targetLists.forEach(target => {
this.delOperate(target.id, target.name);
promiseLists.push(this.delOperate(target.id, target.name));
})
Promise.all(promiseLists).then((item) => {
this.selectedRow = [];

View File

@ -77,7 +77,7 @@ export class ListReplicationRuleComponent implements OnInit, OnChanges {
ruleName: string;
canDeleteRule: boolean;
selectedRow: ReplicationRule[] = [];
selectedRow: ReplicationRule;
batchDelectionInfos: BatchInfo[] = [];
@ViewChild('toggleConfirmDialog')
@ -134,6 +134,7 @@ export class ListReplicationRuleComponent implements OnInit, OnChanges {
this.selectOne.emit(this.rules[0]);
}
this.changedRules = this.rules;
this.selectedRow = this.changedRules[0];
this.loading = false;
}
).catch(error => {

View File

@ -31,7 +31,7 @@
"clarity-icons": "^0.10.17",
"clarity-ui": "^0.10.17",
"core-js": "^2.4.1",
"harbor-ui": "0.6.32",
"harbor-ui": "0.6.33",
"intl": "^1.2.5",
"mutationobserver-shim": "^0.3.2",
"ngx-cookie": "^1.0.0",