From 277f26b15a0808d7619d4f514ec748fa6b8b3bba Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 8 May 2021 19:42:19 +0100 Subject: [PATCH] updated notifications --- src/js/popups/edit-preset-popup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/popups/edit-preset-popup.js b/src/js/popups/edit-preset-popup.js index 797ba281d..5126872ae 100644 --- a/src/js/popups/edit-preset-popup.js +++ b/src/js/popups/edit-preset-popup.js @@ -83,7 +83,7 @@ function apply() { Loader.hide(); let status = e.data.resultCode; if (status === 1) { - Notifications.add("Preset Added", 1, 2); + Notifications.add("Preset added", 1, 2); DB.getSnapshot().presets.push({ name: inputVal, config: configChanges, @@ -110,13 +110,13 @@ function apply() { Loader.hide(); let status = e.data.resultCode; if (status === 1) { - Notifications.add("Tag updated", 1); + Notifications.add("Preset updated", 1); DB.getSnapshot().presets.filter( (preset) => preset.id == presetid )[0].name = inputVal; Settings.update(); } else if (status === -1) { - Notifications.add("Invalid tag name", 0); + Notifications.add("Invalid preset name", 0); } else if (status < -1) { Notifications.add("Unknown error: " + e.data.message, -1); }