cron global switch added
This commit is contained in:
parent
8b43166c18
commit
4ee7981425
|
|
@ -4,6 +4,7 @@
|
||||||
<div class="text-h6">CRON Scheduler</div>
|
<div class="text-h6">CRON Scheduler</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-card-section class="q-pt-none">
|
<q-card-section class="q-pt-none">
|
||||||
|
<q-toggle v-model="data.cronrecs_enab" label="Eanble CRON" />
|
||||||
<q-expansion-item v-for="(cronrec) in data.cronrecs" :key="cronrec.num" :label="list_header(cronrec)"
|
<q-expansion-item v-for="(cronrec) in data.cronrecs" :key="cronrec.num" :label="list_header(cronrec)"
|
||||||
v-show="!cronrec.del">
|
v-show="!cronrec.del">
|
||||||
<q-card flat bordered>
|
<q-card flat bordered>
|
||||||
|
|
@ -36,6 +37,7 @@
|
||||||
<q-btn class="btn" flat v-on:click="AddCronRecord">Add task</q-btn>
|
<q-btn class="btn" flat v-on:click="AddCronRecord">Add task</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
|
<CardActions :senddata="data"></CardActions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -43,6 +45,7 @@
|
||||||
import { reactive, computed } from "vue";
|
import { reactive, computed } from "vue";
|
||||||
import { PostData } from "components/webguicomp/network";
|
import { PostData } from "components/webguicomp/network";
|
||||||
import { ShowDelayDialog } from "components/webguicomp/helpers";
|
import { ShowDelayDialog } from "components/webguicomp/helpers";
|
||||||
|
import CardActions from "components/webguicomp/CardActions.vue";
|
||||||
|
|
||||||
const typestr = computed({
|
const typestr = computed({
|
||||||
get() { return (data.cronrecs[key - 1].type).toString() }
|
get() { return (data.cronrecs[key - 1].type).toString() }
|
||||||
|
|
@ -71,6 +74,7 @@ function initrecs() {
|
||||||
};
|
};
|
||||||
|
|
||||||
const init = {
|
const init = {
|
||||||
|
cronrecs_enab: true,
|
||||||
cronrecs: initrecs()
|
cronrecs: initrecs()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user