+
{{ $tc('word.scheduler', 1) }}
@@ -111,6 +111,9 @@ export default {
showCreateFunctionModal () {
this.$emit('show-create-function-modal');
},
+ showCreateSchedulerModal () {
+ this.$emit('show-create-scheduler-modal');
+ },
showDeleteModal () {
this.isDeleteModal = true;
},
diff --git a/src/renderer/components/WorkspacePropsSchedulerTimingModal.vue b/src/renderer/components/WorkspacePropsSchedulerTimingModal.vue
index 08c0369e..13273689 100644
--- a/src/renderer/components/WorkspacePropsSchedulerTimingModal.vue
+++ b/src/renderer/components/WorkspacePropsSchedulerTimingModal.vue
@@ -168,6 +168,8 @@ export default {
this.hasEnd = !!this.optionsProxy.ends;
if (!this.optionsProxy.at) this.optionsProxy.at = moment().format('YYYY-MM-DD HH:mm:ss');
+ if (!this.optionsProxy.starts) this.optionsProxy.starts = moment().format('YYYY-MM-DD HH:mm:ss');
+ if (!this.optionsProxy.ends) this.optionsProxy.ends = moment().format('YYYY-MM-DD HH:mm:ss');
if (!this.optionsProxy.every.length) this.optionsProxy.every = ['1', 'DAY'];
setTimeout(() => {