show collection name in the page title on initial load
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
## v0.37.1 (WIP)
|
## 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
|
## v0.37.0
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
2
ui/dist/index.html
vendored
2
ui/dist/index.html
vendored
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<!-- prism -->
|
<!-- prism -->
|
||||||
<script src="./libs/prism/prism.js" data-manual></script>
|
<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="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
|
||||||
<link rel="stylesheet" crossorigin href="./assets/index-BLIFQr7L.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-BLIFQr7L.css">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ export function pageCollections(route) {
|
|||||||
watch(
|
watch(
|
||||||
() => (app.store.activeCollection?.name || "") + (app.store.activeCollection?.updated || ""),
|
() => (app.store.activeCollection?.name || "") + (app.store.activeCollection?.updated || ""),
|
||||||
(newVal, oldVal) => {
|
(newVal, oldVal) => {
|
||||||
|
app.store.title = app.store.activeCollection?.name || "Collections";
|
||||||
|
|
||||||
// skip unnecessery initial params replacement
|
// skip unnecessery initial params replacement
|
||||||
if (!oldVal) {
|
if (!oldVal) {
|
||||||
return;
|
return;
|
||||||
@@ -69,8 +71,6 @@ export function pageCollections(route) {
|
|||||||
pageData.sort = "";
|
pageData.sort = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
app.store.title = app.store.activeCollection?.name || "Collections";
|
|
||||||
|
|
||||||
app.utils.replaceHashQueryParams({
|
app.utils.replaceHashQueryParams({
|
||||||
[COLLECTION_QUERY_KEY]: app.store.activeCollection?.name,
|
[COLLECTION_QUERY_KEY]: app.store.activeCollection?.name,
|
||||||
[FILTER_QUERY_KEY]: pageData.filter || null,
|
[FILTER_QUERY_KEY]: pageData.filter || null,
|
||||||
|
|||||||
Reference in New Issue
Block a user