From: Volker Theile Date: Mon, 20 May 2019 08:22:44 +0000 (+0200) Subject: mgr/dashboard: Display correct dialog title X-Git-Tag: v15.1.0~2632^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c87e21da7729c395f9ff12486d38fceaf106a37c;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 --- 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; } /**