shx-3d-render

main
Jan Umbach 2024-06-20 21:02:45 +02:00
parent 8c7a4d1a37
commit 527050dd13
3 changed files with 23 additions and 0 deletions

BIN
assets/box_length.lottie Normal file

Binary file not shown.

View File

@ -177,6 +177,11 @@
}; };
if(data.status === "error") { 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."); this.loadingSpinner.showError("Hoppla, da ist etwas schief gelaufen. Bitte versuche es später erneut.");
return; return;
} }

View File

@ -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() { show() {
if(this.hideTimeout) { if(this.hideTimeout) {
clearTimeout(this.hideTimeout); clearTimeout(this.hideTimeout);