show collection name in the page title on initial load

This commit is contained in:
Gani Georgiev
2026-04-19 12:29:45 +03:00
parent 7b92b7c857
commit 61ce760e0f
4 changed files with 8 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
## v0.37.1 (WIP)
- Allow opening collections in new tab on middle click.
- Minor UI fixes:
- Allow opening collections in new tab on middle click.
- Show collection name in the page title on initial load.
## v0.37.0

View File

File diff suppressed because one or more lines are too long

2
ui/dist/index.html vendored
View File

@@ -13,7 +13,7 @@
<!-- prism -->
<script src="./libs/prism/prism.js" data-manual></script>
<script type="module" crossorigin src="./assets/index-BapiTLZm.js"></script>
<script type="module" crossorigin src="./assets/index-D8i1aGFh.js"></script>
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
<link rel="stylesheet" crossorigin href="./assets/index-BLIFQr7L.css">
</head>

View File

@@ -58,6 +58,8 @@ export function pageCollections(route) {
watch(
() => (app.store.activeCollection?.name || "") + (app.store.activeCollection?.updated || ""),
(newVal, oldVal) => {
app.store.title = app.store.activeCollection?.name || "Collections";
// skip unnecessery initial params replacement
if (!oldVal) {
return;
@@ -69,8 +71,6 @@ export function pageCollections(route) {
pageData.sort = "";
}
app.store.title = app.store.activeCollection?.name || "Collections";
app.utils.replaceHashQueryParams({
[COLLECTION_QUERY_KEY]: app.store.activeCollection?.name,
[FILTER_QUERY_KEY]: pageData.filter || null,