From: Sarthak0702 Date: Thu, 2 Jun 2022 22:58:31 +0000 (+0530) Subject: mgr/dashboard: rbd force resync from fornt-end X-Git-Tag: v18.0.0~657^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F46512%2Fhead;p=ceph.git mgr/dashboard: rbd force resync from fornt-end Signed-off-by: Sarthak0702 --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts index a63ac2379fd59..c6dde029233d6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts @@ -319,6 +319,7 @@ describe('RbdListComponent', () => { 'Edit', 'Copy', 'Flatten', + 'Resync', 'Delete', 'Move to Trash', 'Remove Scheduling' @@ -326,7 +327,7 @@ describe('RbdListComponent', () => { primary: { multiple: 'Create', executing: 'Edit', single: 'Edit', no: 'Create' } }, 'create,update': { - actions: ['Create', 'Edit', 'Copy', 'Flatten', 'Remove Scheduling'], + actions: ['Create', 'Edit', 'Copy', 'Flatten', 'Resync', 'Remove Scheduling'], primary: { multiple: 'Create', executing: 'Edit', single: 'Edit', no: 'Create' } }, 'create,delete': { @@ -338,11 +339,11 @@ describe('RbdListComponent', () => { primary: { multiple: 'Create', executing: 'Copy', single: 'Copy', no: 'Create' } }, 'update,delete': { - actions: ['Edit', 'Flatten', 'Delete', 'Move to Trash', 'Remove Scheduling'], + actions: ['Edit', 'Flatten', 'Resync', 'Delete', 'Move to Trash', 'Remove Scheduling'], primary: { multiple: 'Edit', executing: 'Edit', single: 'Edit', no: 'Edit' } }, update: { - actions: ['Edit', 'Flatten', 'Remove Scheduling'], + actions: ['Edit', 'Flatten', 'Resync', 'Remove Scheduling'], primary: { multiple: 'Edit', executing: 'Edit', single: 'Edit', no: 'Edit' } }, delete: { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts index 369f97de6cf89..215f7f6f874ac 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts @@ -565,7 +565,7 @@ export class RbdListComponent extends ListWithDetails implements OnInit { const first = selection.first(); if (first && this.imageIsPrimary(first)) { - return $localize`Primary RBD cannot be resynced`; + return $localize`Primary RBD images cannot be resynced`; } return this.getInvalidNameDisable(selection);