(this.deleteConfirm = null)}"
title="Confirm Delete"
>
Are you sure you want to permanentely delete the archive
${this.deleteConfirm.title}
(Size:
${prettyBytes(Number(this.deleteConfirm.size))})
`;
}
// @ts-expect-error - TS7006 - Parameter 'event' implicitly has an 'any' type.
onIpfsShare(event) {
if (event.detail.pending) {
this.ipfsSharePending++;
} else {
this.ipfsSharePending--;
}
}
// @ts-expect-error - TS7006 - Parameter 'event' implicitly has an 'any' type.
onDeleteColl(event) {
event.preventDefault();
event.stopPropagation();
if (!this.sortedItems) {
return;
}
const index = Number(event.currentTarget.getAttribute("data-coll-index"));
this.deleteConfirm = this.sortedItems[index];
}
async doDelete() {
if (!this.deleteConfirm) {
return;
}
this._deleting[this.deleteConfirm.sourceUrl] = true;
this.requestUpdate();
const info = this.renderRoot.querySelector