embed loading: for loading errors, show 'Try Again' instead of 'Back', addreses issues in (esmero/format_strawberry#81)
This commit is contained in:
+1
-1
@@ -245,7 +245,7 @@ class Coll extends LitElement
|
|||||||
|
|
||||||
if (this.collInfo && !this.collInfo.coll) {
|
if (this.collInfo && !this.collInfo.coll) {
|
||||||
return html`
|
return html`
|
||||||
<wr-loader .loadInfo="${this.loadInfo}"
|
<wr-loader .loadInfo="${this.loadInfo}" embed="${this.embed}"
|
||||||
.coll="${this.coll}" .sourceUrl="${this.sourceUrl}" @coll-loaded=${this.onCollLoaded}></wr-loader>`;
|
.coll="${this.coll}" .sourceUrl="${this.sourceUrl}" @coll-loaded=${this.onCollLoaded}></wr-loader>`;
|
||||||
} else if (this.collInfo) {
|
} else if (this.collInfo) {
|
||||||
return html`
|
return html`
|
||||||
|
|||||||
+5
-1
@@ -37,6 +37,7 @@ class Loader extends LitElement
|
|||||||
total: { type: Number },
|
total: { type: Number },
|
||||||
status: { type: String },
|
status: { type: String },
|
||||||
coll: { type: String },
|
coll: { type: String },
|
||||||
|
embed: { type: String }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -224,7 +225,10 @@ You can select a file to upload from the main page by clicking the \'Choose File
|
|||||||
return html`
|
return html`
|
||||||
<div class="has-text-left">
|
<div class="has-text-left">
|
||||||
<div class="error has-text-danger">${this.error}</div>
|
<div class="error has-text-danger">${this.error}</div>
|
||||||
<div><a href="/" class="button is-warning">Back</a></div>
|
<div>
|
||||||
|
${this.embed ? html`
|
||||||
|
<a class="button is-warning" @click=${(e) => window.parent.location.reload()}>Try Again</a>` : html`
|
||||||
|
<a href="/" class="button is-warning">Back</a>`}
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
case "waiting":
|
case "waiting":
|
||||||
|
|||||||
@@ -293,7 +293,7 @@
|
|||||||
|
|
||||||
"@webrecorder/wabac@github:webrecorder/wabac.js":
|
"@webrecorder/wabac@github:webrecorder/wabac.js":
|
||||||
version "2.0.2-beta.0"
|
version "2.0.2-beta.0"
|
||||||
resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/bfab1292e07fc417ef968b264c802e16496fd6df"
|
resolved "https://codeload.github.com/webrecorder/wabac.js/tar.gz/fcbf28686cdbbb0b4b563da11e239373fb619ec5"
|
||||||
dependencies:
|
dependencies:
|
||||||
brotli "github:foliojs/brotli.js"
|
brotli "github:foliojs/brotli.js"
|
||||||
fast-xml-parser "^3.15.1"
|
fast-xml-parser "^3.15.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user