fix some routes

This commit is contained in:
Kay0u 2021-01-28 12:02:43 +01:00
parent a632ed7f2d
commit 3706ae58e4
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156
2 changed files with 4 additions and 5 deletions

View file

@ -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')
})
}

View file

@ -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()
})
}