From 3acc4b0d58d73c1e421a4f648d1b3d946d3f504e Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 3 Jan 2024 09:59:27 +0100 Subject: [PATCH] vn qtoolbar --- src/pages/Claim/Card/ClaimCard.vue | 14 +++++++++++++- src/pages/Claim/Card/ClaimLines.vue | 4 +++- src/pages/Customer/Card/CustomerCard.vue | 7 +++++++ src/stores/useStateStore.js | 11 +++++++---- 4 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/pages/Claim/Card/ClaimCard.vue b/src/pages/Claim/Card/ClaimCard.vue index a8c832967..41e4a46cb 100644 --- a/src/pages/Claim/Card/ClaimCard.vue +++ b/src/pages/Claim/Card/ClaimCard.vue @@ -8,7 +8,7 @@ import { useI18n } from 'vue-i18n'; import { useRoute } from 'vue-router'; import ClaimDescriptor from './ClaimDescriptor.vue'; -import { onMounted } from 'vue'; +import { onMounted, onUnmounted } from 'vue'; const stateStore = useStateStore(); const { t } = useI18n(); const route = useRoute(); @@ -22,6 +22,18 @@ const $props = defineProps({ const entityId = computed(() => { return $props.id || route.params.id; }); + +onMounted(() => { + console.log('MOUNTED', stateStore.isSubToolbarShown()); + stateStore.toggleSubToolbar(); + console.log('MOUNTED', stateStore.isSubToolbarShown()); +}); + +onUnmounted(() => { + console.log('MOUNTED', stateStore.isSubToolbarShown()); + stateStore.toggleSubToolbar(); + console.log('MOUNTED', stateStore.isSubToolbarShown()); +});