mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
small fix
This commit is contained in:
parent
d347a283ec
commit
3c5a2810c7
4 changed files with 7 additions and 5 deletions
|
@ -60,6 +60,7 @@ export default {
|
||||||
...mapGetters(['waiting', 'lastAction', 'error']),
|
...mapGetters(['waiting', 'lastAction', 'error']),
|
||||||
|
|
||||||
progress () {
|
progress () {
|
||||||
|
if (!this.lastAction) return null
|
||||||
const progress = this.lastAction.progress
|
const progress = this.lastAction.progress
|
||||||
if (!progress) return null
|
if (!progress) return null
|
||||||
return {
|
return {
|
||||||
|
@ -68,6 +69,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
messages () {
|
messages () {
|
||||||
|
if (!this.lastAction) return null
|
||||||
const messages = this.lastAction.messages
|
const messages = this.lastAction.messages
|
||||||
return messages.length > 0 ? this.lastAction.messages : null
|
return messages.length > 0 ? this.lastAction.messages : null
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</small>
|
</small>
|
||||||
|
|
||||||
<b-button
|
<b-button
|
||||||
v-b-toggle:collapse
|
v-b-toggle:console-collapse
|
||||||
class="ml-2 px-1 py-0" size="sm" :variant="open ? 'light' : 'outline-dark'"
|
class="ml-2 px-1 py-0" size="sm" :variant="open ? 'light' : 'outline-dark'"
|
||||||
>
|
>
|
||||||
<icon iname="chevron-right" /><span class="sr-only">{{ $t('words.collapse') }}</span>
|
<icon iname="chevron-right" /><span class="sr-only">{{ $t('words.collapse') }}</span>
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
|
|
||||||
<!-- ACTION LIST -->
|
<!-- ACTION LIST -->
|
||||||
<b-collapse id="collapse" v-model="open">
|
<b-collapse id="console-collapse" v-model="open">
|
||||||
<b-list-group-item class="p-0" id="history" ref="history">
|
<b-list-group-item class="p-0" id="history" ref="history">
|
||||||
<!-- ACTION -->
|
<!-- ACTION -->
|
||||||
<b-list-group v-for="(action, i) in history" :key="i" flush>
|
<b-list-group v-for="(action, i) in history" :key="i" flush>
|
||||||
|
@ -111,7 +111,7 @@ export default {
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
#console {
|
#console {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
z-index: 10;
|
z-index: 5;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
||||||
margin-left: -1.5rem;
|
margin-left: -1.5rem;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="error mt-4" v-if="error">
|
<div class="error mt-4" v-if="error">
|
||||||
<h2>{{ $t('api_errors_titles' + error.name) }} :/</h2>
|
<h2>{{ $t('api_errors_titles.' + error.name) }} :/</h2>
|
||||||
|
|
||||||
<em v-t="'api_error.sorry'" />
|
<em v-t="'api_error.sorry'" />
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
api.post('diagnosis/run?except-if-never-ran-yet').then(this.fetchData)
|
api.post('diagnosis/run?except_if_never_ran_yet').then(this.fetchData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue