diff --git a/src/ui_ng/lib/src/endpoint/endpoint.component.ts b/src/ui_ng/lib/src/endpoint/endpoint.component.ts index f15917f4c..f500ffd7f 100644 --- a/src/ui_ng/lib/src/endpoint/endpoint.component.ts +++ b/src/ui_ng/lib/src/endpoint/endpoint.component.ts @@ -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 = []; diff --git a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.ts b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.ts index 30ba973e2..135a843f9 100644 --- a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.ts +++ b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.ts @@ -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 => { diff --git a/src/ui_ng/package.json b/src/ui_ng/package.json index 1cca6cd72..dc80ba586 100644 --- a/src/ui_ng/package.json +++ b/src/ui_ng/package.json @@ -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",