]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: add snap schedule M, Y frequencies 55812/head
authorIvo Almeida <ialmeida@redhat.com>
Mon, 26 Feb 2024 11:56:18 +0000 (11:56 +0000)
committerIvo Almeida <ialmeida@redhat.com>
Wed, 28 Feb 2024 10:14:33 +0000 (10:14 +0000)
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 <ialmeida@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/enum/repeat-frequency.enum.ts

index 06fb1c3afc0c028d5af5b3ea81a59b2dd2ba4015..48257504defa0c3a7888a4fac94e9ab025700b28 100644 (file)
@@ -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'
 }