feat(schedule): display next run time

This commit is contained in:
fiftin 2024-06-24 17:32:06 +05:00
parent 5be1f0194d
commit 8418f08583
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -39,10 +39,13 @@
:rules="[v => !!v || $t('Cron required')]"
required
:disabled="formSaving"
class="mb-4"
@input="refreshCheckboxes()"
></v-text-field>
<div class="mb-4" style="color: limegreen; font-weight: bold;">
Next run {{ nextRunTime | formatDate }}.
</div>
<div>
<v-select
v-model="timing"
@ -283,6 +286,12 @@ export default {
};
},
computed: {
nextRunTime() {
return parser.parseExpression(this.item.cron_format).next();
},
},
async created() {
this.templates = (await axios({
method: 'get',