Merge pull request #4137 from pengpengshui/batchDelection

Modify issue about endpoint delection unfreash
This commit is contained in:
pengpengshui 2018-01-26 15:33:10 +08:00 committed by GitHub
commit e07fc8acd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",