From e90bee70b97d1103fc7136ba00f27ed0b6b1d529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 24 Feb 2020 23:52:29 +0100 Subject: fancy toast error messages --- js/meals.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/meals.js b/js/meals.js index 1a38491..09cb762 100644 --- a/js/meals.js +++ b/js/meals.js @@ -84,7 +84,7 @@ async function loadMeals(force_refresh = false) { } }, error: () => { - M.toast({html:"No internet connection or the server fucking crashed! )-:<"}); + M.toast({html:"No internet connection! (-:"}); setLoading(false); } }); @@ -92,7 +92,7 @@ async function loadMeals(force_refresh = false) { }, error: () => { - M.toast({ html: "No internet connection!" }); + M.toast({ html: "Authentication failed (not logged in) or connection problem." }); setLoading(false); } @@ -267,7 +267,7 @@ function lopolisLogin() { } }, error: () => { - M.toast({html:"No internet connection!"}); + M.toast({html:"Authentication failed!"}); setLoading(false); } }); -- cgit v1.2.3