diff --git a/Makefile b/Makefile index 30290f5..74478e4 100644 --- a/Makefile +++ b/Makefile @@ -50,14 +50,14 @@ run: ## FOR DOCO ONLY - Run these one at a time, do not call this target directl npm run preview git-demo: - git stash save "changes for demo" + [[ -z "$(shell git status -s)" ]] || git stash save "changes for demo" git checkout main git branch -D demo git fetch -a git pull git checkout -b demo main git push --set-upstream origin demo - git stash pop + git stash pop || true _helpers: ## FOR DOCO ONLY npx wrangler d1 execute vulnetix --local --file ./migrations/0001_init.sql diff --git a/src/layouts/components/DefaultLayoutWithVerticalNav.vue b/src/layouts/components/DefaultLayoutWithVerticalNav.vue index 316c629..1337375 100644 --- a/src/layouts/components/DefaultLayoutWithVerticalNav.vue +++ b/src/layouts/components/DefaultLayoutWithVerticalNav.vue @@ -4,6 +4,7 @@ import Footer from '@/layouts/components/Footer.vue' import NavbarThemeSwitcher from '@/layouts/components/NavbarThemeSwitcher.vue' import NavSearchBar from '@/layouts/components/NavSearchBar.vue' import UserProfile from '@/layouts/components/UserProfile.vue' +import { useMemberStore } from '@/stores/member' import { useNotificationsStore } from '@/stores/notifications' import { timeAgo } from '@/utils' import Notifications from '@core/components/Notifications.vue' @@ -19,6 +20,8 @@ const icons = { 'mend': mendIcon, } +const Member = useMemberStore() +const { isLoggedIn } = storeToRefs(Member) const NotificationsStore = useNotificationsStore() const notifications = ref(NotificationsStore.state) NotificationsStore.state.map(notification => { @@ -37,7 +40,10 @@ watch(NotificationsStore, () => {