diff --git a/src/ui_ng/lib/src/endpoint/endpoint.component.html.ts b/src/ui_ng/lib/src/endpoint/endpoint.component.html.ts index 17f4d981c..2e7b68960 100644 --- a/src/ui_ng/lib/src/endpoint/endpoint.component.html.ts +++ b/src/ui_ng/lib/src/endpoint/endpoint.component.html.ts @@ -1,4 +1,4 @@ -export const ENDPOINT_TEMPLATE: string = ` +export const ENDPOINT_TEMPLATE = `
@@ -13,12 +13,10 @@ export const ENDPOINT_TEMPLATE: string = `
- -
- - - -
+ + + + {{'DESTINATION.NAME' | translate}} {{'DESTINATION.URL' | translate}} @@ -28,15 +26,15 @@ export const ENDPOINT_TEMPLATE: string = ` {{t.name}} {{t.endpoint}} - - {{!t.insecure}} + + {{!t.insecure}} {{t.creation_time | date: 'short'}} - {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} {{'DESTINATION.OF' | translate}} - {{pagination.totalItems}} {{'DESTINATION.ITEMS' | translate}} - + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} {{'DESTINATION.OF' | translate}} + {{pagination.totalItems}} {{'DESTINATION.ITEMS' | translate}} +
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 2609d09b7..0bdec9232 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 @@ -1,13 +1,11 @@ export const LIST_REPLICATION_RULE_TEMPLATE: string = `
- -
- - - - -
+ + + + + {{'REPLICATION.NAME' | translate}} {{'REPLICATION.PROJECT' | translate}} diff --git a/src/ui_ng/lib/src/repository-listview/repository-listview.component.html.ts b/src/ui_ng/lib/src/repository-listview/repository-listview.component.html.ts index 77e935a80..41bce261f 100644 --- a/src/ui_ng/lib/src/repository-listview/repository-listview.component.html.ts +++ b/src/ui_ng/lib/src/repository-listview/repository-listview.component.html.ts @@ -13,9 +13,7 @@ export const REPOSITORY_LISTVIEW_TEMPLATE = `
-
- -
+
{{'REPOSITORY.NAME' | translate}} {{'REPOSITORY.TAGS_COUNT' | translate}} diff --git a/src/ui_ng/lib/src/repository/repository.component.html.ts b/src/ui_ng/lib/src/repository/repository.component.html.ts index 2bb443602..5ce94e6ba 100644 --- a/src/ui_ng/lib/src/repository/repository.component.html.ts +++ b/src/ui_ng/lib/src/repository/repository.component.html.ts @@ -24,7 +24,7 @@ export const REPOSITORY_TEMPLATE = `
- +
diff --git a/src/ui_ng/src/app/project/create-project/create-project.component.ts b/src/ui_ng/src/app/project/create-project/create-project.component.ts index 6ffb44a88..9fa6e3515 100644 --- a/src/ui_ng/src/app/project/create-project/create-project.component.ts +++ b/src/ui_ng/src/app/project/create-project/create-project.component.ts @@ -134,12 +134,7 @@ export class CreateProjectComponent implements AfterViewChecked, OnInit, OnDestr default: this.translateService.get("PROJECT.UNKNOWN_ERROR").subscribe(res => errorMessage = res); } - if (this.messageHandlerService.isAppLevel(error)) { - this.messageHandlerService.handleError(error); - this.createProjectOpened = false; - } else { - this.inlineAlert.showInlineError(errorMessage); - } + this.messageHandlerService.handleError(error); } }); } diff --git a/src/ui_ng/src/app/project/list-project/list-project.component.html b/src/ui_ng/src/app/project/list-project/list-project.component.html index 823c5c203..edd19c1b0 100644 --- a/src/ui_ng/src/app/project/list-project/list-project.component.html +++ b/src/ui_ng/src/app/project/list-project/list-project.component.html @@ -1,9 +1,7 @@ -
- - -
+ +
{{'PROJECT.NAME' | translate}} {{'PROJECT.ACCESS_LEVEL' | translate}} diff --git a/src/ui_ng/src/app/project/member/member.component.html b/src/ui_ng/src/app/project/member/member.component.html index 714d8f36d..111937452 100644 --- a/src/ui_ng/src/app/project/member/member.component.html +++ b/src/ui_ng/src/app/project/member/member.component.html @@ -14,10 +14,10 @@
- {{'MEMBER.REMOVE' | translate}} + {{'MEMBER.ACTION' | translate}} @@ -25,7 +25,7 @@ @@ -34,7 +34,7 @@ {{m.username}} - Loading... + Loading... {{roleInfo[m.role_id] | translate}} diff --git a/src/ui_ng/src/app/project/member/member.component.ts b/src/ui_ng/src/app/project/member/member.component.ts index 79f56272b..0c9b1a457 100644 --- a/src/ui_ng/src/app/project/member/member.component.ts +++ b/src/ui_ng/src/app/project/member/member.component.ts @@ -159,6 +159,7 @@ export class MemberComponent implements OnInit, OnDestroy { if (member.user_id === this.currentUser.user_id) { let foundMember = this.batchActionInfos.find(batchInfo => batchInfo.name === member.username); this.translate.get("BATCH.SWITCH_FAILURE").subscribe(res => { + this.messageHandlerService.handleError(res + ": " + foundMember.name); foundMember = BathInfoChanges(foundMember, res, false, true); }); } else { @@ -185,6 +186,7 @@ export class MemberComponent implements OnInit, OnDestroy { }, error => { this.translate.get("BATCH.SWITCH_FAILURE").subscribe(res => { + this.messageHandlerService.handleError(res + ": " + username); foundMember = BathInfoChanges(foundMember, res, false, true); }); } diff --git a/src/ui_ng/src/app/user/user.component.html b/src/ui_ng/src/app/user/user.component.html index c7697d4d5..2e4df4328 100644 --- a/src/ui_ng/src/app/user/user.component.html +++ b/src/ui_ng/src/app/user/user.component.html @@ -11,11 +11,9 @@
-
- - - -
+ + +
{{'USER.COLUMN_NAME' | translate}} {{'USER.COLUMN_ADMIN' | translate}} diff --git a/src/ui_ng/src/i18n/lang/en-us-lang.json b/src/ui_ng/src/i18n/lang/en-us-lang.json index 9f97b4449..a415ccda6 100644 --- a/src/ui_ng/src/i18n/lang/en-us-lang.json +++ b/src/ui_ng/src/i18n/lang/en-us-lang.json @@ -219,7 +219,9 @@ "SWITCHED_SUCCESS": "Switched member role successfully.", "OF": "of", "SWITCH_TITLE": "Confirm project members switch", - "SWITCH_SUMMARY": "Do you want to switch project members {{param}}?" + "SWITCH_SUMMARY": "Do you want to switch project members {{param}}?", + "ACTION": "SET ROLE", + "REMOVE": "REMOVE" }, "AUDIT_LOG": { "USERNAME": "Username", diff --git a/src/ui_ng/src/i18n/lang/es-es-lang.json b/src/ui_ng/src/i18n/lang/es-es-lang.json index 2bccd8aad..38052a222 100644 --- a/src/ui_ng/src/i18n/lang/es-es-lang.json +++ b/src/ui_ng/src/i18n/lang/es-es-lang.json @@ -219,7 +219,9 @@ "SWITCHED_SUCCESS": "Rol del miembro cambiado satisfactoriamente.", "OF": "of", "SWITCH_TITLE": "Confirm project members switch", - "SWITCH_SUMMARY": "Do you want to switch project members {{param}}?" + "SWITCH_SUMMARY": "Do you want to switch project members {{param}}?", + "ACTION": "SET ROLE", + "REMOVE": "REMOVE" }, "AUDIT_LOG": { "USERNAME": "Nombre de usuario", diff --git a/src/ui_ng/src/i18n/lang/zh-cn-lang.json b/src/ui_ng/src/i18n/lang/zh-cn-lang.json index 21d154e75..9d6039ae9 100644 --- a/src/ui_ng/src/i18n/lang/zh-cn-lang.json +++ b/src/ui_ng/src/i18n/lang/zh-cn-lang.json @@ -219,7 +219,9 @@ "SWITCHED_SUCCESS": "切换角色成功。", "OF": "共计", "SWITCH_TITLE": "切换项目成员确认", - "SWITCH_SUMMARY": "你确认切换项目成员 {{param}}??" + "SWITCH_SUMMARY": "你确认切换项目成员 {{param}}??", + "ACTION": "设置角色", + "REMOVE": "移除" }, "AUDIT_LOG": { "USERNAME": "用户名",