[pve-devel] [PATCH RFC manager 1/2] ui: adapt/optimize calendar event examples
Dominik Csapak
d.csapak at proxmox.com
Thu Sep 10 14:57:08 CEST 2020
pbs cannot parse minutes alone
(if the hours would be optional it would be ambiguies between hh:mm and mm:ss)
so we adapt the examples here, so that newly created schedules from the
examples include always the hour
also replace */x with 0/x. they are semantically the same, but the
latter is also valid in systemd, while the former is not
also reduce the */1 to * since the /1 does not do anything
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/form/CalendarEvent.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/www/manager6/form/CalendarEvent.js b/www/manager6/form/CalendarEvent.js
index c3b9ecab..1cb8d492 100644
--- a/www/manager6/form/CalendarEvent.js
+++ b/www/manager6/form/CalendarEvent.js
@@ -11,11 +11,11 @@ Ext.define('PVE.form.CalendarEvent', {
store: {
field: [ 'value', 'text'],
data: [
- { value: '*/30', text: Ext.String.format(gettext("Every {0} minutes"), 30) },
- { value: '*/2:00', text: gettext("Every two hours")},
+ { value: '*:00/30', text: Ext.String.format(gettext("Every {0} minutes"), 30) },
+ { value: '00/2:00', text: gettext("Every two hours")},
{ value: '2,22:30', text: gettext("Every day") + " 02:30, 22:30"},
{ value: 'mon..fri', text: gettext("Monday to Friday") + " 00:00"},
- { value: 'mon..fri */1:00', text: gettext("Monday to Friday") + ': ' + gettext("hourly")},
+ { value: 'mon..fri *:00', text: gettext("Monday to Friday") + ': ' + gettext("hourly")},
{ value: 'sun 01:00', text: gettext("Sunday") + " 01:00"}
]
},
--
2.20.1
More information about the pve-devel
mailing list