summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-message.service.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-message.service.ts52
1 files changed, 51 insertions, 1 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-message.service.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-message.service.ts
index f6969c2e8..9aa9f02af 100644
--- a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-message.service.ts
+++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-message.service.ts
@@ -69,7 +69,17 @@ export class TaskMessageService {
delete: new TaskMessageOperation($localize`Deleting`, $localize`delete`, $localize`Deleted`),
add: new TaskMessageOperation($localize`Adding`, $localize`add`, $localize`Added`),
remove: new TaskMessageOperation($localize`Removing`, $localize`remove`, $localize`Removed`),
- import: new TaskMessageOperation($localize`Importing`, $localize`import`, $localize`Imported`)
+ import: new TaskMessageOperation($localize`Importing`, $localize`import`, $localize`Imported`),
+ activate: new TaskMessageOperation(
+ $localize`Importing`,
+ $localize`activate`,
+ $localize`Activated`
+ ),
+ deactivate: new TaskMessageOperation(
+ $localize`Importing`,
+ $localize`deactivate`,
+ $localize`Deactivated`
+ )
};
rbd = {
@@ -359,6 +369,9 @@ export class TaskMessageService {
'cephfs/edit': this.newTaskMessage(this.commonOperations.update, (metadata) =>
this.volume(metadata)
),
+ 'cephfs/auth': this.newTaskMessage(this.commonOperations.update, (metadata) =>
+ this.auth(metadata)
+ ),
'cephfs/remove': this.newTaskMessage(this.commonOperations.remove, (metadata) =>
this.volume(metadata)
),
@@ -379,6 +392,32 @@ export class TaskMessageService {
),
'cephfs/subvolume/group/remove': this.newTaskMessage(this.commonOperations.remove, (metadata) =>
this.subvolumegroup(metadata)
+ ),
+ 'cephfs/subvolume/snapshot/create': this.newTaskMessage(
+ this.commonOperations.create,
+ (metadata) => this.snapshot(metadata)
+ ),
+ 'cephfs/subvolume/snapshot/delete': this.newTaskMessage(
+ this.commonOperations.delete,
+ (metadata) => this.snapshot(metadata)
+ ),
+ 'cephfs/snapshot/schedule/create': this.newTaskMessage(this.commonOperations.add, (metadata) =>
+ this.snapshotSchedule(metadata)
+ ),
+ 'cephfs/snapshot/schedule/edit': this.newTaskMessage(this.commonOperations.update, (metadata) =>
+ this.snapshotSchedule(metadata)
+ ),
+ 'cephfs/snapshot/schedule/delete': this.newTaskMessage(
+ this.commonOperations.delete,
+ (metadata) => this.snapshotSchedule(metadata)
+ ),
+ 'cephfs/snapshot/schedule/activate': this.newTaskMessage(
+ this.commonOperations.activate,
+ (metadata) => this.snapshotSchedule(metadata)
+ ),
+ 'cephfs/snapshot/schedule/deactivate': this.newTaskMessage(
+ this.commonOperations.deactivate,
+ (metadata) => this.snapshotSchedule(metadata)
)
};
@@ -439,6 +478,10 @@ export class TaskMessageService {
return $localize`'${metadata.volumeName}'`;
}
+ auth(metadata: any) {
+ return $localize`client.${metadata.clientId} authorization successfully`;
+ }
+
subvolume(metadata: any) {
return $localize`subvolume '${metadata.subVolumeName}'`;
}
@@ -447,6 +490,13 @@ export class TaskMessageService {
return $localize`subvolume group '${metadata.subvolumegroupName}'`;
}
+ snapshot(metadata: any) {
+ return $localize`snapshot '${metadata.snapshotName}'`;
+ }
+
+ snapshotSchedule(metadata: any) {
+ return $localize`snapshot schedule for path '${metadata?.path}'`;
+ }
crudMessageId(id: string) {
return $localize`${id}`;
}