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()); +});