From: Volker Theile Date: Wed, 29 May 2019 09:30:21 +0000 (+0200) Subject: mgr/dashboard: Display correct dialog title X-Git-Tag: v14.2.2~122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F28189%2Fhead;p=ceph.git 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) --- 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; } /**