]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Display correct dialog title 28189/head
authorVolker Theile <vtheile@suse.com>
Wed, 29 May 2019 09:30:21 +0000 (11:30 +0200)
committerVolker Theile <vtheile@suse.com>
Wed, 29 May 2019 09:30:21 +0000 (11:30 +0200)
The dialog to create a new S3 key shows the title 'Show S3 key' instead of 'Create S3 key'.

Fixes: https://tracker.ceph.com/issues/40047
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit c87e21da7729c395f9ff12486d38fceaf106a37c)

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts

index 07030dba59f3bdac42a3612723dd4379c0647d93..8cf1f98271d35c2cd6651376f0e4adcf775f0816 100644 (file)
@@ -67,8 +67,8 @@ export class RgwUserS3KeyModalComponent {
    * @param {boolean} viewing
    */
   setViewing(viewing: boolean = true) {
-    this.action = this.actionLabels.SHOW;
     this.viewing = viewing;
+    this.action = this.viewing ? this.actionLabels.SHOW : this.actionLabels.CREATE;
   }
 
   /**