]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Add missing text translation 29934/head
authorVolker Theile <vtheile@suse.com>
Tue, 27 Aug 2019 13:46:46 +0000 (15:46 +0200)
committerVolker Theile <vtheile@suse.com>
Tue, 27 Aug 2019 13:46:46 +0000 (15:46 +0200)
Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.ts

index 0b300684caafa895edab1a4c2853dafc9af4994d..80f562c1ed08f4f33424af3cbcfdfed2ce5dd93e 100644 (file)
@@ -38,7 +38,7 @@ export class UserFormComponent implements OnInit {
   userFormMode = UserFormMode;
   mode: UserFormMode;
   allRoles: Array<UserFormRoleModel>;
-  messages = new SelectMessages({ empty: 'There are no roles.' }, this.i18n);
+  messages = new SelectMessages({ empty: this.i18n('There are no roles.') }, this.i18n);
   action: string;
   resource: string;
 
@@ -56,7 +56,7 @@ export class UserFormComponent implements OnInit {
   ) {
     this.resource = this.i18n('user');
     this.createForm();
-    this.messages = new SelectMessages({ empty: 'There are no roles.' }, this.i18n);
+    this.messages = new SelectMessages({ empty: this.i18n('There are no roles.') }, this.i18n);
   }
 
   createForm() {