From 03e40aa4eeb21b49161d55103e7fa56c6357cac3 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 11 Nov 2020 07:49:01 +0100 Subject: [PATCH] ui: datastore add: set default schedule Signed-off-by: Thomas Lamprecht --- www/form/CalendarEvent.js | 1 - www/window/DataStoreEdit.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/www/form/CalendarEvent.js b/www/form/CalendarEvent.js index ddc8fa79..ff053468 100644 --- a/www/form/CalendarEvent.js +++ b/www/form/CalendarEvent.js @@ -49,7 +49,6 @@ Ext.define('PBS.form.CalendarEvent', { return data; }, - store: { type: 'calendarEventExamples', }, diff --git a/www/window/DataStoreEdit.js b/www/window/DataStoreEdit.js index a5675680..335b0e84 100644 --- a/www/window/DataStoreEdit.js +++ b/www/window/DataStoreEdit.js @@ -100,6 +100,7 @@ Ext.define('PBS.DataStoreEdit', { } me.url = name ? baseurl + '/' + name : baseurl; me.method = name ? 'PUT' : 'POST'; + me.scheduleValue = name ? null : 'daily'; me.autoLoad = !!name; return {}; }, @@ -146,15 +147,18 @@ Ext.define('PBS.DataStoreEdit', { emptyText: gettext('none'), cbind: { deleteEmpty: '{!isCreate}', + value: '{scheduleValue}', }, }, { xtype: 'pbsCalendarEvent', name: 'prune-schedule', fieldLabel: gettext("Prune Schedule"), + value: 'daily', emptyText: gettext('none'), cbind: { deleteEmpty: '{!isCreate}', + value: '{scheduleValue}', }, }, ],