AppInfo: move uninstall button in card header

This commit is contained in:
axolotle 2022-11-25 14:16:46 +01:00
parent aa5638ca24
commit 187b8cf455
3 changed files with 7 additions and 12 deletions

View file

@ -130,7 +130,6 @@
"app_info_default_desc": "Redirect domain root to this application ({domain}).",
"app_info_changeurl_desc": "Change the access URL of this application (domain and/or path).",
"app_info_change_url_disabled_tooltip": "This feature hasn't been implemented in this app yet",
"app_info_uninstall_desc": "Remove this application.",
"app_install_custom_no_manifest": "No manifest.json file",
"app_install_parameters": "Install settings",
"app_manage_label_and_tiles": "Manage label and tiles",

View file

@ -215,7 +215,7 @@ body {
margin-top: 0;
}
.card, .list-group-item {
.card-header, .list-group-item {
h1, h2, h3, h4, h5, h6 {
margin: 0;
}

View file

@ -2,6 +2,12 @@
<view-base :queries="queries" @queries-response="onQueriesResponse" ref="view">
<!-- BASIC INFOS -->
<card v-if="infos" :title="infos.label" icon="cube">
<template #header-buttons>
<b-button @click="uninstall" id="uninstall" variant="danger">
<icon iname="trash-o" /> {{ $t('uninstall') }}
</b-button>
</template>
<description-row
v-for="(value, key) in infos" :key="key"
:term="$t(key)"
@ -110,16 +116,6 @@
</template>
</b-form-group>
<hr v-if="app.is_webapp">
<!-- UNINSTALL -->
<b-form-group
:label="$t('app_info_uninstall_desc')" label-for="uninstall"
label-class="font-weight-bold" label-cols-md="4"
>
<b-button @click="uninstall" id="uninstall" variant="danger">
<icon iname="trash-o" /> {{ $t('uninstall') }}
</b-button>
</b-form-group>
</template>
</config-panels>