]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Display correct dialog title 28168/head
authorVolker Theile <vtheile@suse.com>
Mon, 20 May 2019 08:22:44 +0000 (10:22 +0200)
committerVolker Theile <vtheile@suse.com>
Tue, 28 May 2019 14:30:58 +0000 (16: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>
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts

index 4d49c639b329fbb994c488373c974f9bc4a44e87..a3cd2f1167e43ff775d09fd111e8fc9eb41bbeca 100644 (file)
@@ -55,8 +55,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;
   }
 
   /**