mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix: views's modal variant and position
This commit is contained in:
parent
4542ae0672
commit
12399ca3df
5 changed files with 12 additions and 12 deletions
|
@ -19,11 +19,11 @@ export function useAutoModal() {
|
|||
centered: true,
|
||||
okOnly: !cancelable,
|
||||
...(markdown
|
||||
? { headerBgVariant: 'warning', headerClass: 'text-black' }
|
||||
? { headerVariant: 'warning' }
|
||||
: {
|
||||
hideHeader: true,
|
||||
bodyBgVariant: 'warning',
|
||||
bodyClass: ['fw-bold', 'rounded-top', 'text-black'],
|
||||
bodyVariant: 'warning',
|
||||
bodyClass: ['fw-bold', 'rounded-top'],
|
||||
}),
|
||||
...props_,
|
||||
}
|
||||
|
|
|
@ -507,9 +507,9 @@ async function uninstall() {
|
|||
|
||||
<BModal
|
||||
id="uninstall-modal"
|
||||
centered
|
||||
:title="$t('confirm_uninstall', { name: id })"
|
||||
header-bg-variant="warning"
|
||||
header-class="text-black"
|
||||
header-variant="warning"
|
||||
:body-class="{ 'd-none': !app.supportsPurge }"
|
||||
@ok="uninstall"
|
||||
>
|
||||
|
|
|
@ -223,9 +223,9 @@ async function setAsDefaultDomain() {
|
|||
|
||||
<BModal
|
||||
id="delete-modal"
|
||||
centered
|
||||
:title="$t('confirm_delete', { name: props.name })"
|
||||
header-bg-variant="warning"
|
||||
header-class="text-black"
|
||||
header-variant="warning"
|
||||
:body-class="{ 'd-none': !isMainDynDomain }"
|
||||
@ok="deleteDomain"
|
||||
>
|
||||
|
|
|
@ -179,15 +179,15 @@ async function performSystemUpgrade() {
|
|||
<BModal
|
||||
v-if="preUpgrade"
|
||||
id="apps-pre-upgrade"
|
||||
centered
|
||||
:model-value="true"
|
||||
:title="$t('app.upgrade.confirm.title')"
|
||||
header-bg-variant="warning"
|
||||
header-class="text-black"
|
||||
header-variant="warning"
|
||||
:ok-title="$t('system_upgrade_btn')"
|
||||
ok-variant="success"
|
||||
:cancel-title="$t('cancel')"
|
||||
@ok="performAppsUpgrade(preUpgrade.apps.map((app) => app.id))"
|
||||
@cancel="preUpgrade = undefined"
|
||||
@hide="preUpgrade = undefined"
|
||||
>
|
||||
<h3>
|
||||
{{ $t('app.upgrade.confirm.apps') }}
|
||||
|
|
|
@ -114,9 +114,9 @@ function deleteUser() {
|
|||
<BModal
|
||||
v-if="user"
|
||||
id="delete-modal"
|
||||
centered
|
||||
:title="$t('confirm_delete', { name })"
|
||||
header-bg-variant="warning"
|
||||
header-class="text-black"
|
||||
header-variant="warning"
|
||||
@ok="deleteUser"
|
||||
>
|
||||
<BFormGroup>
|
||||
|
|
Loading…
Reference in a new issue