Merge pull request #55312 from afreen23/fix-55270

mgr/dashboard:  Code refactor rgw migrate component for using correctly the MIGRATE action verb

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
This commit is contained in:
Nizamudeen A 2024-01-29 10:14:27 +05:30 committed by GitHub
commit 2218c356a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<cd-form-button-panel (submitActionEvent)="submit()" <cd-form-button-panel (submitActionEvent)="submit()"
[submitText]="actionLabels.MIGRATE" [submitText]="actionLabels.MIGRATE + ' ' + 'to Multi-site'"
[form]="multisiteMigrateForm"></cd-form-button-panel> [form]="multisiteMigrateForm"></cd-form-button-panel>
</div> </div>
</form> </form>

View File

@ -181,7 +181,7 @@ export class RgwMultisiteMigrateComponent implements OnInit {
() => { () => {
this.notificationService.show( this.notificationService.show(
NotificationType.success, NotificationType.success,
$localize`${this.actionLabels.MIGRATE} done successfully` $localize`Migration done successfully`
); );
this.submitAction.emit(); this.submitAction.emit();
this.activeModal.close(); this.activeModal.close();

View File

@ -150,7 +150,7 @@ export class ActionLabelsI18n {
this.IMPORT = $localize`Import`; this.IMPORT = $localize`Import`;
this.MIGRATE = $localize`Migrate to Multi-site`; this.MIGRATE = $localize`Migrate`;
/* Destroy an existing item */ /* Destroy an existing item */
this.DELETE = $localize`Delete`; this.DELETE = $localize`Delete`;