From efe974b8e9d263ac12fc385971d69fd500e9a742 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 2 Jun 2021 20:44:36 +0200 Subject: [PATCH 1/4] [fix] Backup create --- app/src/views/backup/BackupCreate.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/views/backup/BackupCreate.vue b/app/src/views/backup/BackupCreate.vue index 7ac84154..8f9c1f4d 100644 --- a/app/src/views/backup/BackupCreate.vue +++ b/app/src/views/backup/BackupCreate.vue @@ -155,7 +155,7 @@ 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] From 49a8e056f6de16382937253d7c870c359877ab6a Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 2 Jun 2021 20:47:54 +0200 Subject: [PATCH 2/4] [fix] Backup restore --- app/src/views/backup/BackupInfo.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) } } From f0681039d12b8dbba7924d1113f0c220e661ab19 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 2 Jun 2021 20:49:02 +0200 Subject: [PATCH 3/4] [fix] Backup create again --- app/src/views/backup/BackupCreate.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/views/backup/BackupCreate.vue b/app/src/views/backup/BackupCreate.vue index 8f9c1f4d..79169af1 100644 --- a/app/src/views/backup/BackupCreate.vue +++ b/app/src/views/backup/BackupCreate.vue @@ -158,9 +158,9 @@ export default { 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) } } From 103c04cc663520d92290516269b37914e78dc7bf Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 2 Jun 2021 20:56:55 +0200 Subject: [PATCH 4/4] [fix] Migrations run and skipped --- app/src/views/tool/ToolMigrations.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }) }