mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 18:54:39 +02:00
Add a way to see the backup location
This commit is contained in:
parent
9519f6418d
commit
bfa87a2131
5 changed files with 30 additions and 1 deletions
|
@ -134,6 +134,23 @@ export default {
|
|||
this.enableBackups = !!this.newServerSettings.backupSchedule
|
||||
this.maxBackupSize = this.newServerSettings.maxBackupSize || 1
|
||||
this.cronExpression = this.newServerSettings.backupSchedule || '30 1 * * *'
|
||||
|
||||
this.loadBackupLocation()
|
||||
},
|
||||
loadBackupLocation() {
|
||||
this.processing = true
|
||||
this.$axios
|
||||
.$get('/api/backups/location')
|
||||
.then((data) => {
|
||||
this.backupLocation = data.backupLocation
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Failed to load backup location', error)
|
||||
this.$toast.error('Failed to load backup location')
|
||||
})
|
||||
.finally(() => {
|
||||
this.processing = false
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue