diff --git a/client/components/tables/BackupsTable.vue b/client/components/tables/BackupsTable.vue index 08692a4d..bd3d074a 100644 --- a/client/components/tables/BackupsTable.vue +++ b/client/components/tables/BackupsTable.vue @@ -1,5 +1,5 @@ @@ -64,6 +68,7 @@ export default { showConfirmApply: false, selectedBackup: null, isBackingUp: false, + isApplyingBackup: false, processing: false, backups: [] } @@ -85,19 +90,21 @@ export default { }, confirm() { this.showConfirmApply = false + this.isApplyingBackup = true this.$axios .$get(`/api/backups/${this.selectedBackup.id}/apply`) .then(() => { - this.isBackingUp = false location.replace('/config/backups?backup=1') }) .catch((error) => { - this.isBackingUp = false console.error('Failed to apply backup', error) const errorMsg = error.response.data || this.$strings.ToastBackupRestoreFailed this.$toast.error(errorMsg) }) + .finally(() => { + this.isApplyingBackup = false + }) }, deleteBackupClick(backup) { if (confirm(this.$getString('MessageConfirmDeleteBackup', [this.$formatDatetime(backup.createdAt, this.dateFormat, this.timeFormat)]))) { @@ -180,7 +187,6 @@ export default { this.loadBackups() if (this.$route.query.backup) { this.$toast.success('Backup applied successfully') - this.$router.replace('/config') } } } diff --git a/client/nuxt.config.js b/client/nuxt.config.js index 6a347c23..b5659086 100644 --- a/client/nuxt.config.js +++ b/client/nuxt.config.js @@ -25,7 +25,8 @@ module.exports = { meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, - { hid: 'description', name: 'description', content: '' } + { hid: 'description', name: 'description', content: '' }, + { hid: 'robots', name: 'robots', content: 'noindex' } ], script: [], link: [ diff --git a/client/package-lock.json b/client/package-lock.json index 9d513691..a3435d74 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,12 +1,12 @@ { "name": "audiobookshelf-client", - "version": "2.8.0", + "version": "2.8.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "audiobookshelf-client", - "version": "2.8.0", + "version": "2.8.1", "license": "ISC", "dependencies": { "@nuxtjs/axios": "^5.13.6", @@ -16976,4 +16976,4 @@ } } } -} +} \ No newline at end of file diff --git a/client/package.json b/client/package.json index 55acee1b..5ce9766d 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "audiobookshelf-client", - "version": "2.8.0", + "version": "2.8.1", "buildNumber": 1, "description": "Self-hosted audiobook and podcast client", "main": "index.js", @@ -36,4 +36,4 @@ "postcss": "^8.3.6", "tailwindcss": "^3.4.1" } -} +} \ No newline at end of file diff --git a/client/pages/login.vue b/client/pages/login.vue index 7f1ff621..94741648 100644 --- a/client/pages/login.vue +++ b/client/pages/login.vue @@ -1,6 +1,13 @@