diff --git a/app/src/views/backup/BackupCreate.vue b/app/src/views/backup/BackupCreate.vue index 7ac84154..79169af1 100644 --- a/app/src/views/backup/BackupCreate.vue +++ b/app/src/views/backup/BackupCreate.vue @@ -155,12 +155,12 @@ export default { }, createBackup () { - const data = { apps: [], system: [] } + const data = { 'apps[]': [], 'system[]': [] } for (const item of this.selected) { if (item in this.system) { - data.system = [...data.system, ...this.system[item].value] + data['system[]'] = [...data['system[]'], ...this.system[item].value] } else { - data.apps.push(item) + data['apps[]'].push(item) } } diff --git a/app/src/views/backup/BackupInfo.vue b/app/src/views/backup/BackupInfo.vue index 86ba2acd..a88455ac 100644 --- a/app/src/views/backup/BackupInfo.vue +++ b/app/src/views/backup/BackupInfo.vue @@ -201,12 +201,12 @@ export default { ) if (!confirmed) return - const data = { apps: [], system: [], force: '' } + const data = { 'apps[]': [], 'system[]': [], force: '' } for (const item of this.selected) { if (item in this.system) { - data.system = [...data.system, ...this.system[item].value] + data['system[]'] = [...data['system[]'], ...this.system[item].value] } else { - data.apps.push(item) + data['apps[]'].push(item) } } diff --git a/app/src/views/tool/ToolMigrations.vue b/app/src/views/tool/ToolMigrations.vue index 638b0bf2..8ea1a4e5 100644 --- a/app/src/views/tool/ToolMigrations.vue +++ b/app/src/views/tool/ToolMigrations.vue @@ -121,7 +121,7 @@ export default { } // Check that every migration's disclaimer has been checked. if (Object.values(this.checked).every(value => value === true)) { - api.post('migrations/run?accept_disclaimer', 'migrations.run').then(() => { + api.put('migrations/run?accept_disclaimer', 'migrations.run').then(() => { this.$refs.view.fetchQueries() }) } @@ -130,7 +130,7 @@ export default { async skipMigration (id) { const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_migrations_skip')) if (!confirmed) return - api.post('/migrations/run', { skip: '', targets: id }, 'migration.skip').then(() => { + api.put('/migrations/run', { skip: '', targets: id }, 'migration.skip').then(() => { this.$refs.view.fetchQueries() }) }