Made breadcrumbs reactive

This commit is contained in:
Liviu Burcusel 2026-01-12 11:01:50 +01:00
parent 7b1ce9cb23
commit a7f75868cf
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
6 changed files with 55 additions and 6 deletions

View file

@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref } from "vue";
import { useBreadcrumbStore } from "~/stores/breadcrumbs";
import { Button } from "@/components/ui/button";
const lastClicked = ref<string>("None");
@ -7,6 +8,9 @@ const lastClicked = ref<string>("None");
const buttonClicked = (variant: string) => {
lastClicked.value = variant;
};
const breadcrumbStore = useBreadcrumbStore();
breadcrumbStore.setBreadcrumbs([{ label: "Homepage", to: "/" }]);
</script>
<template>