shx-3d-render
parent
8c7a4d1a37
commit
527050dd13
Binary file not shown.
|
@ -177,6 +177,11 @@
|
|||
};
|
||||
|
||||
if(data.status === "error") {
|
||||
if(data.errorMessage === "TooLong") {
|
||||
this.loadingSpinner.showErrorCharLottie("Hoppla, der von dir eingegene Text ist zu lang. Bitte kürze ihn. Oder wende dich an uns für eine individuelle Lösung.");
|
||||
return;
|
||||
}
|
||||
|
||||
this.loadingSpinner.showError("Hoppla, da ist etwas schief gelaufen. Bitte versuche es später erneut.");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -49,6 +49,24 @@
|
|||
`;
|
||||
}
|
||||
|
||||
showErrorCharLottie(text) {
|
||||
this.resetStyles();
|
||||
|
||||
this.container.innerHTML = `
|
||||
<dotlottie-player
|
||||
id="SHX-feedback-modal-lottie2"
|
||||
src="{{ 'box_length.lottie' | asset_url }}"
|
||||
background="transparent"
|
||||
speed="1"
|
||||
autoplay
|
||||
loop="true"
|
||||
style="width: 200px; height: 200px; margin: 0 auto;"
|
||||
direction="1"
|
||||
mode="bounce"></dotlottie-player>
|
||||
<p class="shx-loading-spinner-unclickable" style="margin-top: 0;">${text}</p>
|
||||
`;
|
||||
}
|
||||
|
||||
show() {
|
||||
if(this.hideTimeout) {
|
||||
clearTimeout(this.hideTimeout);
|
||||
|
|
Loading…
Reference in New Issue