Changed the way the sidebar works
This commit is contained in:
@@ -4,6 +4,8 @@ import type { World } from "~/models/World";
|
||||
import type { Calendar, CalendarChannelPayload } from "~/models/CalendarConfig";
|
||||
import { PhArrowBendDoubleUpLeft, PhGlobeHemisphereWest, PhPencil } from "@phosphor-icons/vue";
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
const supabase = useSupabaseClient()
|
||||
const route = useRoute()
|
||||
const id = route.params.id
|
||||
@@ -24,6 +26,18 @@ watch(user, (n) => {
|
||||
}
|
||||
})
|
||||
|
||||
// Set custom menu
|
||||
const { setCurrentMenu } = useUiStore()
|
||||
|
||||
setCurrentMenu([
|
||||
{
|
||||
tooltip: t("entity.world.backToMy"),
|
||||
to: "/my",
|
||||
phIcon: "universe",
|
||||
highlight: true
|
||||
},
|
||||
])
|
||||
|
||||
/**
|
||||
* === Subscriptions ===
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user