From: Afreen Date: Thu, 25 Jan 2024 11:21:06 +0000 (+0530) Subject: mgr/dashboard: Code refactor rgw migrate component for using correctly the MIGRATE... X-Git-Tag: v19.3.0~144^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F55312%2Fhead;p=ceph.git mgr/dashboard: Code refactor rgw migrate component for using correctly the MIGRATE action verb fixes https://tracker.ceph.com/issues/64152 this.MIGRATE = $localize`Migrate to Multi-Site`; Just like other action verbs we should set this.Migrate = "MIGRATE" only. This will require rephrasing in the following places as well: 1. https://github.com/ceph/ceph/blob/d3256c484136a1b32b79a904861f681a9248ba3c/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-details/rgw-multisite-details.component.ts#L223-L228 2. https://github.com/ceph/ceph/blob/d3256c484136a1b32b79a904861f681a9248ba3c/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.ts#L180-L18 Signed-off-by: Afreen --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.html index b18c5a0b9d76b..51f72dd7f8977 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.html @@ -146,7 +146,7 @@ diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.ts index 4c2f53b6af1fa..1073dee429a5f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.ts @@ -181,7 +181,7 @@ export class RgwMultisiteMigrateComponent implements OnInit { () => { this.notificationService.show( NotificationType.success, - $localize`${this.actionLabels.MIGRATE} done successfully` + $localize`Migration done successfully` ); this.submitAction.emit(); this.activeModal.close(); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/constants/app.constants.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/constants/app.constants.ts index 0f41e2832204d..7edce5ff6671d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/constants/app.constants.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/constants/app.constants.ts @@ -150,7 +150,7 @@ export class ActionLabelsI18n { this.IMPORT = $localize`Import`; - this.MIGRATE = $localize`Migrate to Multi-site`; + this.MIGRATE = $localize`Migrate`; /* Destroy an existing item */ this.DELETE = $localize`Delete`;