Skip to content

Commit

Permalink
fix: allow switching between layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
grantjbutler committed Feb 19, 2022
1 parent 04884f1 commit ea38649
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/renderer/src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ const component = computed(() => store.rootComponent);
const layoutsStore = useLayoutsStore();
const layouts = computed(() => layoutsStore.layouts);
const selectedLayout = computed(() => layoutsStore.selectedLayout);
const selectedLayout = computed({
get: () => layoutsStore.selectedLayout,
set: (value) => layoutsStore.selectLayout(value),
});
const isNewLayoutModalOpen = ref(false);
const setIsNewLayoutModalOpen = (isOpen: boolean) => isNewLayoutModalOpen.value = isOpen;
Expand Down

0 comments on commit ea38649

Please sign in to comment.