fix some post request

This commit is contained in:
Axolotle 2020-09-25 09:20:58 +02:00
parent 6fef804fe1
commit a7fc728b7a
4 changed files with 8 additions and 8 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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')
})
}

View file

@ -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)
}
},