diff --git a/static/images/nav/save-59.png b/static/images/nav/save-59.png new file mode 100644 index 0000000..40fd3b7 Binary files /dev/null and b/static/images/nav/save-59.png differ diff --git a/static/images/nav/save.svg b/static/images/nav/save.svg new file mode 100644 index 0000000..d45ea58 --- /dev/null +++ b/static/images/nav/save.svg @@ -0,0 +1,40 @@ + + \ No newline at end of file diff --git a/static/js/settings.js b/static/js/settings.js index bf484bc..9db69e6 100644 --- a/static/js/settings.js +++ b/static/js/settings.js @@ -29,10 +29,27 @@ async function setQl(){ } localStorage.setItem("qlOpt", JSON.stringify(qlSet)) log(`settings.setQl: User settings saved`, "INFO") - hideLoading(); + await hideLoading(); + await showDone(); + await delay(600); + hideDone(); } async function clearQl(){ + showLoading(); localStorage.removeItem("qlOpt") + log(`settings.setQl: User settings reset to default`, "INFO") getQl() + await hideLoading(); + await showDone(); + await delay(600); + hideDone(); +} + +async function showDone() { + document.getElementById("done").style = "opacity: 1"; +} + +async function hideDone() { + document.getElementById("done").style = "opacity: 0"; } \ No newline at end of file diff --git a/static/settings.html b/static/settings.html index 6982828..9dbdece 100644 --- a/static/settings.html +++ b/static/settings.html @@ -23,6 +23,15 @@
Loading
+Done
+