embed loading: for loading errors, show 'Try Again' instead of 'Back', addreses issues in (esmero/format_strawberry#81)

This commit is contained in:
Ilya Kreymer
2020-06-29 19:49:57 -07:00
parent 98409a7efb
commit 7066b32e95
5 changed files with 40 additions and 33 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ class Coll extends LitElement
if (this.collInfo && !this.collInfo.coll) {
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>`;
} else if (this.collInfo) {
return html`
+5 -1
View File
@@ -37,6 +37,7 @@ class Loader extends LitElement
total: { type: Number },
status: { 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`
<div class="has-text-left">
<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>`;
case "waiting":
+15 -15
View File
File diff suppressed because one or more lines are too long
+18 -15
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -293,7 +293,7 @@
"@webrecorder/wabac@github:webrecorder/wabac.js":
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:
brotli "github:foliojs/brotli.js"
fast-xml-parser "^3.15.1"