From 4b9d3c4ae02f4bc3a8e42af9b113cf1d5a4f18cc Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Wed, 29 May 2019 11:30:21 +0200 Subject: [PATCH] mgr/dashboard: Display correct dialog title 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 (cherry picked from commit c87e21da7729c395f9ff12486d38fceaf106a37c) --- .../rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts index 07030dba59f..8cf1f98271d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-s3-key-modal/rgw-user-s3-key-modal.component.ts @@ -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; } /** -- 2.47.3