From c87e21da7729c395f9ff12486d38fceaf106a37c Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Mon, 20 May 2019 10:22:44 +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 --- .../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 4d49c639b329..a3cd2f1167e4 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 @@ -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; } /** -- 2.47.3