extensability: make purge cache configurable

ui: fix date padding for month-day
package: add index.html to npm package
bump to 1.6.2, update CHANGES.md
This commit is contained in:
Ilya Kreymer
2022-07-05 12:24:50 -07:00
parent 54fd92c273
commit f1c5e931c8
6 changed files with 20 additions and 11 deletions
+3 -1
View File
@@ -66,6 +66,7 @@ class Coll extends LitElement
this.editable = false;
this.browsable = true;
this.clearable = true;
this.showSidebar = localStorage.getItem("pages:showSidebar") === "1";
this.splitter = null;
@@ -108,6 +109,7 @@ class Coll extends LitElement
embed: { type: String },
editable: { type: Boolean },
browsable: { type: Boolean },
clearable: { type: Boolean },
isVisible: { type: Boolean },
@@ -844,7 +846,7 @@ class Coll extends LitElement
<span>Browse Contents</span>
</a>` : ""}
${this.renderExtraToolbar(true)}
${!this.editable ? html`
${this.clearable ? html`
<hr class="dropdown-divider is-hidden-desktop">
<a href="#" role="button" class="dropdown-item" @click="${this.onPurgeCache}" @keyup="${clickOnSpacebarPress}">
<span class="icon is-small">