mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix some routes
This commit is contained in:
parent
a632ed7f2d
commit
3706ae58e4
2 changed files with 4 additions and 5 deletions
|
@ -86,12 +86,11 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
queries () {
|
queries () {
|
||||||
const queryString = objectToParams({
|
const queryString = objectToParams({
|
||||||
path: this.name,
|
|
||||||
filter_irrelevant: '',
|
filter_irrelevant: '',
|
||||||
with_suboperations: '',
|
with_suboperations: '',
|
||||||
number: this.numberOfLines
|
number: this.numberOfLines
|
||||||
})
|
})
|
||||||
return ['logs/display?' + queryString]
|
return [`logs/${this.name}?${queryString}`]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -126,7 +125,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
shareLogs () {
|
shareLogs () {
|
||||||
api.get(`/logs/display?path=${this.name}&share`).then(({ url }) => {
|
api.get(`/logs/${this.name}?share`).then(({ url }) => {
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ export default {
|
||||||
}
|
}
|
||||||
// Check that every migration's disclaimer has been checked.
|
// Check that every migration's disclaimer has been checked.
|
||||||
if (Object.values(this.checked).every(value => value === true)) {
|
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()
|
this.$refs.view.fetchQueries()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ export default {
|
||||||
const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_migrations_skip'))
|
const confirmed = await this.$askConfirmation(this.$i18n.t('confirm_migrations_skip'))
|
||||||
if (!confirmed) return
|
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()
|
this.$refs.view.fetchQueries()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue