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>
|
<template>
|
||||||
<div class="domain-cert" v-if="cert">
|
<div class="domain-cert" v-if="cert">
|
||||||
<b-card class="mb-3">
|
<b-card>
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<h2><icon iname="lock" /> {{ $t('certificate_status') }}</h2>
|
<h2><icon iname="lock" /> {{ $t('certificate_status') }}</h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-card class="mb-3">
|
<b-card>
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<h2><icon iname="info-circle" /> {{ name }}</h2>
|
<h2><icon iname="info-circle" /> {{ name }}</h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="tool-log">
|
<div class="tool-log">
|
||||||
<!-- INFO CARD -->
|
<!-- INFO CARD -->
|
||||||
<b-card class="mb-3">
|
<b-card>
|
||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<h2><icon iname="info-circle" /> {{ description }}</h2>
|
<h2><icon iname="info-circle" /> {{ description }}</h2>
|
||||||
</template>
|
</template>
|
||||||
|
@ -120,7 +120,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
shareLogs () {
|
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')
|
window.open(url, '_blank')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,8 +123,8 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
fetchData () {
|
fetchData () {
|
||||||
api.getAll([
|
api.getAll([
|
||||||
'/migrations?pending',
|
'migrations?pending',
|
||||||
'/migrations?done'
|
'migrations?done'
|
||||||
]).then(([{ migrations: pending }, { migrations: done }]) => {
|
]).then(([{ migrations: pending }, { migrations: done }]) => {
|
||||||
this.done = done.reverse()
|
this.done = done.reverse()
|
||||||
pending.forEach(migration => {
|
pending.forEach(migration => {
|
||||||
|
@ -147,12 +147,12 @@ 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').then(this.fetchData)
|
api.post('migrations/migrate', { accept_disclaimer: true }).then(this.fetchData)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
skipMigration () {
|
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