Skip to content

Commit

Permalink
Components: Side-config-panel: Simplify opening logic
Browse files Browse the repository at this point in the history
Signed-off-by: Arturo Manzoli <[email protected]>
  • Loading branch information
ArturoManzoli committed Jan 29, 2025
1 parent e4da927 commit 2db8ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/EditMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@
</GlassModal>
</teleport>

<SideConfigPanel position="right">
<SideConfigPanel position="right" hide-button>
<ElementConfigPanel v-if="store.elementToShowOnDrawer?.hash" />
</SideConfigPanel>
</template>
Expand Down
6 changes: 2 additions & 4 deletions src/components/SideConfigPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
:leave-from-class="leaveFromClass"
:leave-to-class="leaveToClass"
>
<div v-if="visible" class="fixed shadow-lg" :class="panelPositionClass">
<div v-if="interfaceStore.isConfigPanelVisible" class="fixed shadow-lg" :class="panelPositionClass">
<v-btn
v-if="hideButton"
v-if="!hideButton"
icon
size="x-small"
variant="text"
Expand Down Expand Up @@ -41,8 +41,6 @@ const props = defineProps<{
hideButton?: boolean
}>()
const visible = computed(() => interfaceStore.configPanelVisible)
const closePanel = (): void => {
interfaceStore.configPanelVisible = false
}
Expand Down

0 comments on commit 2db8ea0

Please sign in to comment.