fix settings modal on mobile

This commit is contained in:
Henry Jameson 2025-02-05 08:37:00 +02:00
parent 78907571cb
commit 081b2f66f2
3 changed files with 5 additions and 4 deletions

View file

@ -22,6 +22,7 @@ const ConfirmModal = {
type: String type: String
} }
}, },
emits: ['cancelled', 'accepted'],
computed: { computed: {
}, },
methods: { methods: {

View file

@ -1,8 +1,8 @@
<template> <template>
<dialog-modal <DialogModal
v-body-scroll-lock="true" v-body-scroll-lock="true"
class="confirm-modal" class="confirm-modal"
:on-cancel="onCancel" @cancel="onCancel"
> >
<template #header> <template #header>
<span v-text="title" /> <span v-text="title" />
@ -23,7 +23,7 @@
v-text="cancelText" v-text="cancelText"
/> />
</template> </template>
</dialog-modal> </DialogModal>
</template> </template>
<script src="./confirm_modal.js"></script> <script src="./confirm_modal.js"></script>

View file

@ -170,7 +170,7 @@ const SettingsModal = {
}, },
computed: { computed: {
...mapState(useInterfaceStore, { ...mapState(useInterfaceStore, {
temporaryChangesTimeoutId: store => store.layoutType === 'mobile', temporaryChangesTimeoutId: store => store.temporaryChangesTimeoutId,
currentSaveStateNotice: store => store.settings.currentSaveStateNotice, currentSaveStateNotice: store => store.settings.currentSaveStateNotice,
modalActivated: store => store.settingsModalState !== 'hidden', modalActivated: store => store.settingsModalState !== 'hidden',
modalMode: store => store.settingsModalMode, modalMode: store => store.settingsModalMode,