mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
feat(schedule): display next run time
This commit is contained in:
parent
5be1f0194d
commit
8418f08583
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user