From 2765e90333530077935ea473f541d02770342e55 Mon Sep 17 00:00:00 2001 From: Sarthak0702 Date: Fri, 3 Jun 2022 04:28:31 +0530 Subject: [PATCH] mgr/dashboard: rbd force resync from fornt-end Signed-off-by: Sarthak0702 --- .../src/app/ceph/block/rbd-list/rbd-list.component.spec.ts | 7 ++++--- .../src/app/ceph/block/rbd-list/rbd-list.component.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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); -- 2.39.5