mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
expose app config panel button on AppInfo
This commit is contained in:
parent
d041ca1742
commit
c5028eaaa6
1 changed files with 16 additions and 12 deletions
|
@ -111,6 +111,19 @@
|
|||
</b-form-group>
|
||||
<hr>
|
||||
|
||||
<!-- APP CONFIG PANEL -->
|
||||
<template v-if="hasConfigPanel">
|
||||
<b-form-group
|
||||
:label="$t('app_config_panel_label')" label-for="config"
|
||||
label-cols-md="4" label-class="font-weight-bold"
|
||||
>
|
||||
<b-button id="config" variant="warning" :to="{ name: 'app-config-panel', params: { id } }">
|
||||
<icon iname="flask" /> {{ $t('app_config_panel') }}
|
||||
</b-button>
|
||||
</b-form-group>
|
||||
<hr>
|
||||
</template>
|
||||
|
||||
<!-- UNINSTALL -->
|
||||
<b-form-group
|
||||
:label="$t('app_info_uninstall_desc')" label-for="uninstall"
|
||||
|
@ -133,17 +146,6 @@
|
|||
<icon iname="flask" /> {{ $t('app_actions') }}
|
||||
</b-button>
|
||||
</b-form-group>
|
||||
<hr>
|
||||
|
||||
<!-- APP CONFIG PANEL -->
|
||||
<b-form-group
|
||||
:label="$t('app_config_panel_label')" label-for="config"
|
||||
label-cols-md="4" label-class="font-weight-bold"
|
||||
>
|
||||
<b-button id="config" variant="warning" :to="{ name: 'app-config-panel', params: { id } }">
|
||||
<icon iname="flask" /> {{ $t('app_config_panel') }}
|
||||
</b-button>
|
||||
</b-form-group>
|
||||
</card>
|
||||
|
||||
<template #skeleton>
|
||||
|
@ -178,7 +180,8 @@ export default {
|
|||
],
|
||||
infos: undefined,
|
||||
app: undefined,
|
||||
form: undefined
|
||||
form: undefined,
|
||||
hasConfigPanel: undefined
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -248,6 +251,7 @@ export default {
|
|||
supports_change_url: app.supports_change_url,
|
||||
permissions
|
||||
}
|
||||
this.hasConfigPanel = app.supports_config_panel
|
||||
},
|
||||
|
||||
changeLabel (permName, data) {
|
||||
|
|
Loading…
Add table
Reference in a new issue