diff --git a/src/components/Notification.vue b/src/components/Notification.vue index 7b6c52e1..742cd92f 100644 --- a/src/components/Notification.vue +++ b/src/components/Notification.vue @@ -17,7 +17,6 @@ diff --git a/src/components/base/BaseCheckbox.vue b/src/components/base/BaseCheckbox.vue index 59116499..654dbff3 100644 --- a/src/components/base/BaseCheckbox.vue +++ b/src/components/base/BaseCheckbox.vue @@ -1,6 +1,5 @@ diff --git a/src/components/panels/Panel.vue b/src/components/panels/Panel.vue index 104bffc0..bed3c1eb 100644 --- a/src/components/panels/Panel.vue +++ b/src/components/panels/Panel.vue @@ -95,6 +95,7 @@ import { computed, nextTick, ref, watch, } from 'vue'; import { useStore } from 'vuex'; +import { useConfigStore } from '@/stores/config'; import { useI18n } from 'vue-i18n'; import TabView from 'primevue/tabview'; import TabPanel from 'primevue/tabpanel'; @@ -136,6 +137,7 @@ export default { }, setup(props, { emit }) { const store = useStore(); + const configStore = useConfigStore() const { t } = useI18n(); const tabs = ref([]); @@ -317,7 +319,7 @@ export default { [contentItem] = item.value.content; // TODO: this should be moved to loading time in order dynamically recognize all content types // instead of only the first one - store.dispatch('config/setContentType', contentItem.type.split('type=')[1]); + configStore.setContentType(contentItem.type.split('type=')[1]); } contentItem = item.value.content.find((c) => c.type.split('type=')[1] === type); diff --git a/src/components/panels/PanelsWrapper.vue b/src/components/panels/PanelsWrapper.vue index 72a5af94..49645dd5 100644 --- a/src/components/panels/PanelsWrapper.vue +++ b/src/components/panels/PanelsWrapper.vue @@ -15,12 +15,10 @@