diff --git a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts index 36240b8f1..be458ba3f 100644 --- a/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts +++ b/src/ui_ng/lib/src/create-edit-endpoint/create-edit-endpoint.component.ts @@ -241,15 +241,16 @@ export class CreateEditEndpointComponent implements AfterViewChecked, OnDestroy this.onGoing = false; this.close(); }).catch(error => { + this.onGoing = false; let errorMessageKey = this.handleErrorMessageKey(error.status); this.translateService .get(errorMessageKey) .subscribe(res => { this.inlineAlert.showInlineError(res); - this.onGoing = false; }); } ); + this.forceRefreshView(1000); } updateEndpoint() { @@ -295,6 +296,7 @@ export class CreateEditEndpointComponent implements AfterViewChecked, OnDestroy this.onGoing = false; } ); + this.forceRefreshView(100); } handleErrorMessageKey(status: number): string { diff --git a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html.ts b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html.ts index 834958f7d..c9e3d4312 100644 --- a/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html.ts +++ b/src/ui_ng/lib/src/list-replication-rule/list-replication-rule.component.html.ts @@ -13,14 +13,14 @@ export const LIST_REPLICATION_RULE_TEMPLATE: string = ` {{'REPLICATION.DESTINATION_NAME' | translate}} {{'REPLICATION.TRIGGER_MODE' | translate}} {{'REPLICATION.PLACEHOLDER' | translate }} - - {{p.name}} - - {{p.projects?.length>0 ? p.projects[0].name : ''}} + + {{p.name}} + + {{p.projects?.length>0 ? p.projects[0].name : ''}} - {{p.description ? p.description : '-'}} - {{p.targets?.length>0 ? p.targets[0].name : ''}} - {{p.trigger ? p.trigger.kind : ''}} + {{p.description ? p.description : '-'}} + {{p.targets?.length>0 ? p.targets[0].name : ''}} + {{p.trigger ? p.trigger.kind : ''}} {{pagination.firstItem + 1}} - {{pagination.lastItem +1 }} {{'REPLICATION.OF' | translate}} {{pagination.totalItems }} {{'REPLICATION.ITEMS' | translate}} 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 2a25f777b..30ba973e2 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 @@ -187,7 +187,6 @@ export class ListReplicationRuleComponent implements OnInit, OnChanges { selectRule(rule: ReplicationRule): void { this.selectedId = rule.id || ''; - this.selectedRow = null; this.selectOne.emit(rule); } diff --git a/src/ui_ng/package.json b/src/ui_ng/package.json index 32549fb92..1cca6cd72 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.30", + "harbor-ui": "0.6.32", "intl": "^1.2.5", "mutationobserver-shim": "^0.3.2", "ngx-cookie": "^1.0.0", diff --git a/src/ui_ng/src/app/project/create-project/create-project.component.html b/src/ui_ng/src/app/project/create-project/create-project.component.html index a067a3211..ff0303a21 100644 --- a/src/ui_ng/src/app/project/create-project/create-project.component.html +++ b/src/ui_ng/src/app/project/create-project/create-project.component.html @@ -8,7 +8,7 @@