Skip to content

Commit

Permalink
fix breadcrumb logic, labels and routes
Browse files Browse the repository at this point in the history
  • Loading branch information
scammo committed Apr 21, 2024
1 parent a04d097 commit 681dbb5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions frontend/src/views/orga/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ const home = ref({
label: "Übersicht",
route: "/orga",
});
const items = ref([{
label: 'Track',
route: `/orga/track/${route.params.id}`,
}]);
const items = ref([]);
const proposalData = ref(null);
const getPrivateKey = () => new Promise((resolve, reject) => {
Expand All @@ -59,8 +56,13 @@ onMounted(async () => {
}
proposal.value = await getProposalById(proposalId.value);
items.value[0].label = `${proposal.value.id} - ${proposal.value.name}`;
home.value.to = `/orga/track/${proposal.value.track.slug}`;
items.value.push({
label: proposal.value.track.name,
route: `/orga/track/${proposal.value.track.slug}`
}, {
label: proposal.value.name,
route: `/proposal/${proposal.value.id}`
})
proposalData.value = proposals[proposal.value.track.slug];
Expand Down

0 comments on commit 681dbb5

Please sign in to comment.