Skip to content

Commit

Permalink
Fix edit project registry title
Browse files Browse the repository at this point in the history
- in case of editing a registry the title was "Add Project Registry".
Changed it to "Edit Project Registry"

Change-Id: I0d6806a17b0728486c0615a0f6756b0da2da26e2
Reviewed-on: https://bellevue-ci.eng.vmware.com:8080/31178
Upgrade-Verified: jenkins <[email protected]>
Closures-Verified: jenkins <[email protected]>
Bellevue-Verified: jenkins <[email protected]>
CS-Verified: jenkins <[email protected]>
Reviewed-by: Iveta Ilieva <[email protected]>
  • Loading branch information
afilipov1 committed Apr 16, 2018
1 parent b3d9773 commit 2356338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
</div>
</clr-alert>

<h3 *ngIf="editMode" class="projects-details-header-title">{{entity?.name}}</h3>
<h3 *ngIf="!editMode" class="projects-details-header-title">{{"projects.projectRegistries.registryDetails.title" | i18n}}</h3>
<h3 class="projects-details-header-title">{{ editMode ? entity?.name :
("projects.projectRegistries.registryDetails.title" | i18n) }}</h3>

<clr-tabs>
<clr-tab>
<button clrTabLink id="generalTab">{{"projects.projectRegistries.registryDetails.title" | i18n}}</button>
<button clrTabLink id="generalTab">{{ editMode ? ("projects.projectRegistries.registryDetails.editTitle" | i18n) :
("projects.projectRegistries.registryDetails.title" | i18n) }}</button>
<clr-tab-content id="generalContent" *clrIfActive>
<form [formGroup]="projectRegistryDetailsForm">
<section class="form-block">
Expand Down
1 change: 1 addition & 0 deletions ui/ng-app/src/assets/i18n/admiral.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
},
"registryDetails": {
"title": "Add Project Registry",
"editTitle": "Edit Project Registry",
"descriptions": "Add registry to the project",
"fieldAddress": "Address",
"fieldName": "Name",
Expand Down

0 comments on commit 2356338

Please sign in to comment.