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) {
|
||||
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
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user