summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-20 19:33:31 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-20 19:33:31 +0200
commit6def94865615d5bccba3bae278ea54932643db9a (patch)
tree17533c3da0bf8e5cf784746addeba610e7be4fb4 /assets/js
parentDO_NOT_MERGE; still testing error reporting optout (diff)
downloadbeziapp-6def94865615d5bccba3bae278ea54932643db9a.tar
beziapp-6def94865615d5bccba3bae278ea54932643db9a.tar.gz
beziapp-6def94865615d5bccba3bae278ea54932643db9a.tar.bz2
beziapp-6def94865615d5bccba3bae278ea54932643db9a.tar.lz
beziapp-6def94865615d5bccba3bae278ea54932643db9a.tar.xz
beziapp-6def94865615d5bccba3bae278ea54932643db9a.tar.zst
beziapp-6def94865615d5bccba3bae278ea54932643db9a.zip
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/lang/bundle.js2
-rw-r--r--assets/js/settings.js3
-rw-r--r--assets/js/setup-storage.js2
3 files changed, 6 insertions, 1 deletions
diff --git a/assets/js/lang/bundle.js b/assets/js/lang/bundle.js
index 7e269b0..9f0497b 100644
--- a/assets/js/lang/bundle.js
+++ b/assets/js/lang/bundle.js
@@ -296,6 +296,7 @@ var langstrings = {
errorReporting: "error reporting",
on: "on",
off: "off",
+ selectErrorReporting: "should error reports be submitted to the developers?",
// gsec
gsecErrNet: "GimSIS connection error",
gsecErrLogin: "GimSIS login error (bad password?), try logging out",
@@ -491,6 +492,7 @@ var langstrings = {
errorReporting: "pošiljanje napak",
on: "vklopljeno",
off: "izklopljeno",
+ selectErrorReporting: "ali naj so napake v aplikaciji posredovane razvijalcem?",
// gsec
gsecErrNet: "napaka povezave na GimSIS",
gsecErrLogin: "prijava v GimSIS ni uspela (napačno geslo?), poskusite se odjaviti",
diff --git a/assets/js/settings.js b/assets/js/settings.js
index 7ea0b47..1dd3bfc 100644
--- a/assets/js/settings.js
+++ b/assets/js/settings.js
@@ -66,6 +66,9 @@ document.addEventListener("DOMContentLoaded", async () => {
var elems = document.querySelectorAll(".theme-select");
M.FormSelect.init(elems, {});
+ var elems = document.querySelectorAll(".errorreporting-select");
+ M.FormSelect.init(elems, {});
+
// Setup language select dropdown
var elems = document.querySelectorAll(".lang-select");
M.FormSelect.init(elems, {});
diff --git a/assets/js/setup-storage.js b/assets/js/setup-storage.js
index ce66bba..7aaa089 100644
--- a/assets/js/setup-storage.js
+++ b/assets/js/setup-storage.js
@@ -19,7 +19,7 @@ async function setupStorage(force = false) {
localforage.setItem("directory", {}), //\\ well I could remember my own code but I didn't.
localforage.setItem("meals", {}),
localforage.setItem("chosenLang", "en"),
- localforage.setItem("theme", "light")
+ localforage.setItem("theme", "light"),
localforage.setItem("errorReporting", "on")
];