Commit 557b0be5 authored by Dannon Baker's avatar Dannon Baker
Browse files

Add explicit close state for sidebar -- an alternative to this would be a...

Add explicit close state for sidebar -- an alternative to this would be a separate boolean but that has different complications (intentionally retaining state of the last selected bar vs when we want to dump it, etc)
parent 8d8b5ed7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -68,6 +68,10 @@ export const useActivityStore = defineScopedStore("activityStore", (scope) => {
        toggledSideBar.value = toggledSideBar.value === currentOpen ? "" : currentOpen;
    }

    function closeSideBar() {
        toggledSideBar.value = "closed";
    }

    function overrideDefaultActivities(activities: Activity[]) {
        customDefaultActivities.value = activities;
        sync();
@@ -197,6 +201,8 @@ export const useActivityStore = defineScopedStore("activityStore", (scope) => {
    return {
        toggledSideBar,
        toggleSideBar,
        closeSideBar,
        isSideBarOpen,
        activities,
        activityMeta,
        metaForId,