From 26cd04772a4b4c06e90cfbadca7169643d1fffdc Mon Sep 17 00:00:00 2001 From: Ivo Almeida Date: Mon, 26 Feb 2024 11:56:18 +0000 Subject: [PATCH] mgr/dashboard: add snap schedule M, Y frequencies Added M and Y (month and year) repeat frequencies to snap schedule create form. Fixes: https://tracker.ceph.com/issues/64614 Signed-off-by: Ivo Almeida (cherry picked from commit be3bb09cca7ff8d10a36a59702bb16fd10aba84e) --- .../src/app/shared/enum/repeat-frequency.enum.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/enum/repeat-frequency.enum.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/enum/repeat-frequency.enum.ts index 06fb1c3afc0c0..48257504defa0 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/enum/repeat-frequency.enum.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/enum/repeat-frequency.enum.ts @@ -1,17 +1,23 @@ export enum RepeatFrequency { Hourly = 'h', Daily = 'd', - Weekly = 'w' + Weekly = 'w', + Monthly = 'M', + Yearly = 'Y' } export enum RepeaFrequencySingular { h = 'hour', d = 'day', - w = 'week' + w = 'week', + M = 'month', + Y = 'year' } export enum RepeaFrequencyPlural { h = 'hours', d = 'days', - w = 'weeks' + w = 'weeks', + M = 'months', + Y = 'years' } -- 2.39.5