fix: Add page title for Label and Location pages (#803)

When accessing a specific label or location, the page title is now set
to the name of that label or location.

The issue was more notorious when opening these pages in new tabs, which
didn't inherit the title from the previous page, resulting in a
title with the raw page URL.
This commit is contained in:
Michael Manganiello
2025-06-22 20:39:37 -03:00
committed by GitHub
parent e664dfcfbd
commit c53cefe6cb
2 changed files with 6 additions and 0 deletions

View File

@@ -137,6 +137,9 @@
</Dialog>
<BaseContainer v-if="label">
<!-- set page title -->
<Title>{{ label.name }}</Title>
<Card class="p-3">
<header :class="{ 'mb-2': label.description }">
<div class="flex flex-wrap items-end gap-2">

View File

@@ -159,6 +159,9 @@
</Dialog>
<BaseContainer v-if="location">
<!-- set page title -->
<Title>{{ location.name }}</Title>
<Card class="p-3">
<header :class="{ 'mb-2': location?.description }">
<div class="flex flex-wrap items-end gap-2">