ui improvements:
- condense navbar, always show with breadcrumbs for collection title and current page - add update-title event to propagate replay page title for breadcrumb, also updates document.title - appmain: make app component more extensible, make coll-index also extensible with custom coll info component - condense index view headers - bump to 1.3.2
This commit is contained in:
+6
-2
@@ -92,6 +92,9 @@ class Replay extends LitElement
|
||||
|
||||
if (this.iframeUrl && changedProperties.has("iframeUrl")) {
|
||||
this.waitForLoad();
|
||||
|
||||
const detail = {title: "Archived Page", replayTitle: false};
|
||||
this.dispatchEvent(new CustomEvent("update-title", {bubbles: true, composed: true, detail}));
|
||||
}
|
||||
|
||||
if (this.replayUrl && changedProperties.has("replayUrl")) {
|
||||
@@ -131,8 +134,9 @@ class Replay extends LitElement
|
||||
}
|
||||
}
|
||||
|
||||
if (this.title){
|
||||
document.title = `Replay of ${this.title} | ReplayWeb.page`;
|
||||
if (this.title) {
|
||||
const detail = {title: this.title, replayTitle: true};
|
||||
this.dispatchEvent(new CustomEvent("update-title", {bubbles: true, composed: true, detail}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user