fix error related to old interface actions
This commit is contained in:
parent
143a670858
commit
78907571cb
2 changed files with 6 additions and 5 deletions
|
@ -7,7 +7,7 @@ import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||||
import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue'
|
import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue'
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import { cloneDeep, isEqual } from 'lodash'
|
import { cloneDeep, isEqual } from 'lodash'
|
||||||
import { mapState as mapPiniaState } from 'pinia'
|
import { mapState, mapActions } from 'pinia'
|
||||||
import {
|
import {
|
||||||
newImporter,
|
newImporter,
|
||||||
newExporter
|
newExporter
|
||||||
|
@ -165,10 +165,11 @@ const SettingsModal = {
|
||||||
},
|
},
|
||||||
pushAdminDraft () {
|
pushAdminDraft () {
|
||||||
this.$store.dispatch('pushAdminDraft')
|
this.$store.dispatch('pushAdminDraft')
|
||||||
}
|
},
|
||||||
|
...mapActions(useInterfaceStore, ['temporaryChangesRevert', 'temporaryChangesConfirm'])
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapPiniaState(useInterfaceStore, {
|
...mapState(useInterfaceStore, {
|
||||||
temporaryChangesTimeoutId: store => store.layoutType === 'mobile',
|
temporaryChangesTimeoutId: store => store.layoutType === 'mobile',
|
||||||
currentSaveStateNotice: store => store.settings.currentSaveStateNotice,
|
currentSaveStateNotice: store => store.settings.currentSaveStateNotice,
|
||||||
modalActivated: store => store.settingsModalState !== 'hidden',
|
modalActivated: store => store.settingsModalState !== 'hidden',
|
||||||
|
|
|
@ -162,8 +162,8 @@
|
||||||
:title="$t('settings.confirm_new_setting')"
|
:title="$t('settings.confirm_new_setting')"
|
||||||
:cancel-text="$t('settings.revert')"
|
:cancel-text="$t('settings.revert')"
|
||||||
:confirm-text="$t('settings.confirm')"
|
:confirm-text="$t('settings.confirm')"
|
||||||
@cancelled="$store.state.interface.temporaryChangesRevert"
|
@cancelled="temporaryChangesRevert"
|
||||||
@accepted="$store.state.interface.temporaryChangesConfirm"
|
@accepted="temporaryChangesConfirm"
|
||||||
>
|
>
|
||||||
{{ $t('settings.confirm_new_question') }}
|
{{ $t('settings.confirm_new_question') }}
|
||||||
</ConfirmModal>
|
</ConfirmModal>
|
||||||
|
|
Loading…
Add table
Reference in a new issue