mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
update upgrade api routes
This commit is contained in:
parent
6438ea5414
commit
227e359e42
1 changed files with 2 additions and 5 deletions
|
@ -74,7 +74,7 @@ export default {
|
|||
return {
|
||||
queries: [
|
||||
['GET', 'migrations?pending'],
|
||||
['PUT', 'update']
|
||||
['PUT', 'update/all']
|
||||
],
|
||||
// API data
|
||||
migrationsNotDone: undefined,
|
||||
|
@ -95,10 +95,7 @@ export default {
|
|||
const confirmed = await this.$askConfirmation(confirmMsg)
|
||||
if (!confirmed) return
|
||||
|
||||
const uri = type === 'specific_app'
|
||||
? 'upgrade/apps?app=' + id
|
||||
: 'upgrade?' + type
|
||||
|
||||
const uri = id !== null ? `apps/${id}/upgrade` : 'upgrade/' + type
|
||||
api.put(uri).then(() => {
|
||||
this.$router.push({ name: 'tool-logs' })
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue