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
}
},
emits: ['cancelled', 'accepted'],
computed: {
},
methods: {

View file

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

View file

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