mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix some post request
This commit is contained in:
parent
6fef804fe1
commit
a7fc728b7a
4 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="domain-cert" v-if="cert">
|
||||
<b-card class="mb-3">
|
||||
<b-card>
|
||||
<template v-slot:header>
|
||||
<h2><icon iname="lock" /> {{ $t('certificate_status') }}</h2>
|
||||
</template>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<b-card class="mb-3">
|
||||
<b-card>
|
||||
<template v-slot:header>
|
||||
<h2><icon iname="info-circle" /> {{ name }}</h2>
|
||||
</template>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="tool-log">
|
||||
<!-- INFO CARD -->
|
||||
<b-card class="mb-3">
|
||||
<b-card>
|
||||
<template v-slot:header>
|
||||
<h2><icon iname="info-circle" /> {{ description }}</h2>
|
||||
</template>
|
||||
|
@ -120,7 +120,7 @@ export default {
|
|||
},
|
||||
|
||||
shareLogs () {
|
||||
api.get('/logs/display', { path: this.name, share: '' }).then(({ url }) => {
|
||||
api.get(`/logs/display?path=${this.name}&share`).then(({ url }) => {
|
||||
window.open(url, '_blank')
|
||||
})
|
||||
}
|
||||
|
|
|
@ -123,8 +123,8 @@ export default {
|
|||
methods: {
|
||||
fetchData () {
|
||||
api.getAll([
|
||||
'/migrations?pending',
|
||||
'/migrations?done'
|
||||
'migrations?pending',
|
||||
'migrations?done'
|
||||
]).then(([{ migrations: pending }, { migrations: done }]) => {
|
||||
this.done = done.reverse()
|
||||
pending.forEach(migration => {
|
||||
|
@ -147,12 +147,12 @@ 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').then(this.fetchData)
|
||||
api.post('migrations/migrate', { accept_disclaimer: true }).then(this.fetchData)
|
||||
}
|
||||
},
|
||||
|
||||
skipMigration () {
|
||||
api.post('/migrations/migrate?skip&targets=' + this.skipId).then(this.fetchData)
|
||||
api.post('/migrations/migrate', { skip: true, targets: this.skipId }).then(this.fetchData)
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue