From 3706ae58e41ce78c2e5288a3f38cc1f7ceb7cfdc Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 28 Jan 2021 12:02:43 +0100 Subject: [PATCH] fix some routes --- app/src/views/tool/ToolLog.vue | 5 ++--- app/src/views/tool/ToolMigrations.vue | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/views/tool/ToolLog.vue b/app/src/views/tool/ToolLog.vue index 05bf1bee..512fdfe2 100644 --- a/app/src/views/tool/ToolLog.vue +++ b/app/src/views/tool/ToolLog.vue @@ -86,12 +86,11 @@ export default { computed: { queries () { const queryString = objectToParams({ - path: this.name, filter_irrelevant: '', with_suboperations: '', number: this.numberOfLines }) - return ['logs/display?' + queryString] + return [`logs/${this.name}?${queryString}`] } }, @@ -126,7 +125,7 @@ export default { }, shareLogs () { - api.get(`/logs/display?path=${this.name}&share`).then(({ url }) => { + api.get(`/logs/${this.name}?share`).then(({ url }) => { window.open(url, '_blank') }) } diff --git a/app/src/views/tool/ToolMigrations.vue b/app/src/views/tool/ToolMigrations.vue index 6bc15bc8..7c781178 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/migrate', { accept_disclaimer: true }).then(() => { + api.post('migrations/run', { accept_disclaimer: true }).then(() => { this.$refs.view.fetchQueries() }) } @@ -131,7 +131,7 @@ export default { const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_migrations_skip')) if (!confirmed) return - api.post('/migrations/migrate', { skip: true, targets: id }).then(() => { + api.post('/migrations/run', { skip: true, targets: id }).then(() => { this.$refs.view.fetchQueries() }) }