From 084b3d308b46191b67d72151df8facdfa3c84a7b Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 30 Mar 2022 20:43:24 +0200 Subject: [PATCH] Changed toast.confirm.html --- web/src/app/js/app.js | 5 +++++ web/src/app/js/templates/toast/confirm.html | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/app/js/app.js b/web/src/app/js/app.js index bedd5de..08b6179 100644 --- a/web/src/app/js/app.js +++ b/web/src/app/js/app.js @@ -497,6 +497,11 @@ app.toast = { container.id = 'toast-container'; container.className = 'height-mobile'; document.body.appendChild(container); + } else { + const html = container.outerHTML; + container.remove(); + document.body.innerHTML += html; + container = document.getElementById('toast-container'); } var toasts = document.getElementById('toasts'); if (toasts === null) { diff --git a/web/src/app/js/templates/toast/confirm.html b/web/src/app/js/templates/toast/confirm.html index d6273f6..3829d21 100644 --- a/web/src/app/js/templates/toast/confirm.html +++ b/web/src/app/js/templates/toast/confirm.html @@ -1,6 +1,6 @@
- {.no_text} - {.yes_text}