mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-19 18:29:37 +00:00
Add:Cron expression builder advanced view
This commit is contained in:
parent
9a57fcad40
commit
0c20988e18
3 changed files with 96 additions and 36 deletions
|
|
@ -46,12 +46,12 @@ export default {
|
|||
id: 'settings',
|
||||
title: 'Settings',
|
||||
component: 'modals-libraries-library-settings'
|
||||
},
|
||||
{
|
||||
id: 'schedule',
|
||||
title: 'Schedule',
|
||||
component: 'modals-libraries-schedule-scan'
|
||||
}
|
||||
// {
|
||||
// id: 'schedule',
|
||||
// title: 'Schedule',
|
||||
// component: 'modals-libraries-schedule-scan'
|
||||
// }
|
||||
],
|
||||
libraryCopy: null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,10 @@ export default {
|
|||
methods: {
|
||||
toggleEnableAutoScan(v) {
|
||||
if (!v) this.updatedCron(null)
|
||||
else if (!this.cronExpression) {
|
||||
this.cronExpression = '0 0 * * 1'
|
||||
this.updatedCron(this.cronExpression)
|
||||
}
|
||||
},
|
||||
updatedCron(expression) {
|
||||
this.$emit('update', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue