mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-27 23:46:37 +01:00
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:
committed by
GitHub
parent
e664dfcfbd
commit
c53cefe6cb
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user