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']),
|
||||
|
||||
progress () {
|
||||
if (!this.lastAction) return null
|
||||
const progress = this.lastAction.progress
|
||||
if (!progress) return null
|
||||
return {
|
||||
|
@ -68,6 +69,7 @@ export default {
|
|||
},
|
||||
|
||||
messages () {
|
||||
if (!this.lastAction) return null
|
||||
const messages = this.lastAction.messages
|
||||
return messages.length > 0 ? this.lastAction.messages : null
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
</small>
|
||||
|
||||
<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'"
|
||||
>
|
||||
<icon iname="chevron-right" /><span class="sr-only">{{ $t('words.collapse') }}</span>
|
||||
|
@ -24,7 +24,7 @@
|
|||
</b-list-group-item>
|
||||
|
||||
<!-- 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">
|
||||
<!-- ACTION -->
|
||||
<b-list-group v-for="(action, i) in history" :key="i" flush>
|
||||
|
@ -111,7 +111,7 @@ export default {
|
|||
<style lang="scss" scoped>
|
||||
#console {
|
||||
position: sticky;
|
||||
z-index: 10;
|
||||
z-index: 5;
|
||||
bottom: 0;
|
||||
|
||||
margin-left: -1.5rem;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<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'" />
|
||||
|
||||
|
|
|
@ -194,7 +194,7 @@ export default {
|
|||
},
|
||||
|
||||
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>
|
||||
|
|
Loading…
Add table
Reference in a new issue