mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
update migrations api routes
This commit is contained in:
parent
227e359e42
commit
ebda02a777
1 changed files with 2 additions and 2 deletions
|
@ -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/run', { accept_disclaimer: true }).then(() => {
|
api.put('migrations', { 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/run', { skip: true, targets: id }).then(() => {
|
api.put('migrations/' + id, { skip: '' }).then(() => {
|
||||||
this.$refs.view.fetchQueries()
|
this.$refs.view.fetchQueries()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue