fix: views's modal variant and position

This commit is contained in:
axolotle 2024-08-21 18:27:15 +02:00
parent 4542ae0672
commit 12399ca3df
5 changed files with 12 additions and 12 deletions

View file

@ -19,11 +19,11 @@ export function useAutoModal() {
centered: true, centered: true,
okOnly: !cancelable, okOnly: !cancelable,
...(markdown ...(markdown
? { headerBgVariant: 'warning', headerClass: 'text-black' } ? { headerVariant: 'warning' }
: { : {
hideHeader: true, hideHeader: true,
bodyBgVariant: 'warning', bodyVariant: 'warning',
bodyClass: ['fw-bold', 'rounded-top', 'text-black'], bodyClass: ['fw-bold', 'rounded-top'],
}), }),
...props_, ...props_,
} }

View file

@ -507,9 +507,9 @@ async function uninstall() {
<BModal <BModal
id="uninstall-modal" id="uninstall-modal"
centered
:title="$t('confirm_uninstall', { name: id })" :title="$t('confirm_uninstall', { name: id })"
header-bg-variant="warning" header-variant="warning"
header-class="text-black"
:body-class="{ 'd-none': !app.supportsPurge }" :body-class="{ 'd-none': !app.supportsPurge }"
@ok="uninstall" @ok="uninstall"
> >

View file

@ -223,9 +223,9 @@ async function setAsDefaultDomain() {
<BModal <BModal
id="delete-modal" id="delete-modal"
centered
:title="$t('confirm_delete', { name: props.name })" :title="$t('confirm_delete', { name: props.name })"
header-bg-variant="warning" header-variant="warning"
header-class="text-black"
:body-class="{ 'd-none': !isMainDynDomain }" :body-class="{ 'd-none': !isMainDynDomain }"
@ok="deleteDomain" @ok="deleteDomain"
> >

View file

@ -179,15 +179,15 @@ async function performSystemUpgrade() {
<BModal <BModal
v-if="preUpgrade" v-if="preUpgrade"
id="apps-pre-upgrade" id="apps-pre-upgrade"
centered
:model-value="true" :model-value="true"
:title="$t('app.upgrade.confirm.title')" :title="$t('app.upgrade.confirm.title')"
header-bg-variant="warning" header-variant="warning"
header-class="text-black"
:ok-title="$t('system_upgrade_btn')" :ok-title="$t('system_upgrade_btn')"
ok-variant="success" ok-variant="success"
:cancel-title="$t('cancel')" :cancel-title="$t('cancel')"
@ok="performAppsUpgrade(preUpgrade.apps.map((app) => app.id))" @ok="performAppsUpgrade(preUpgrade.apps.map((app) => app.id))"
@cancel="preUpgrade = undefined" @hide="preUpgrade = undefined"
> >
<h3> <h3>
{{ $t('app.upgrade.confirm.apps') }} {{ $t('app.upgrade.confirm.apps') }}

View file

@ -114,9 +114,9 @@ function deleteUser() {
<BModal <BModal
v-if="user" v-if="user"
id="delete-modal" id="delete-modal"
centered
:title="$t('confirm_delete', { name })" :title="$t('confirm_delete', { name })"
header-bg-variant="warning" header-variant="warning"
header-class="text-black"
@ok="deleteUser" @ok="deleteUser"
> >
<BFormGroup> <BFormGroup>