ui tweaks for downstream (archiveweb.page):

- don't show page editing options when in sidebar mode
- don't autorefresh in replay and sidebar not visibile
- disable plugins by default now
This commit is contained in:
Ilya Kreymer
2021-02-15 15:24:22 -08:00
parent 2fbea9b970
commit 72194c308a
7 changed files with 45 additions and 32 deletions
+8 -2
View File
@@ -146,7 +146,7 @@ class Coll extends LitElement
}
if (changedProperties.has("editable")) {
if (this.editable) {
this._pollColl = setInterval(() => this.doUpdateInfo(), 10000);
this._pollColl = setInterval(() => this.doUpdateInfo(true), 10000);
} else if (this._pollColl) {
clearInterval(this._pollColl);
}
@@ -230,7 +230,13 @@ class Coll extends LitElement
}
}
async doUpdateInfo() {
async doUpdateInfo(autorefresh = false)
{
// if auto-refresh, and replay and no sidebar, than skip update
if (autorefresh && this.tabData.url && !this.showSidebar) {
return;
}
let coll = this.loadInfo && this.loadInfo.customColl;
if (!coll) {