diff --git a/src/frontend/partials/controls.eta.html b/src/frontend/partials/controls.eta.html
index e496867..1e93504 100644
--- a/src/frontend/partials/controls.eta.html
+++ b/src/frontend/partials/controls.eta.html
@@ -177,7 +177,7 @@
});
-
AssetFlow Alpha V0.0.1
+ AssetFlow Alpha V0.0.1
diff --git a/static/js/toastHandler.js b/static/js/toastHandler.js
index 60dc1f1..851356f 100644
--- a/static/js/toastHandler.js
+++ b/static/js/toastHandler.js
@@ -1,5 +1,12 @@
currentToasts = [];
var forceSkipReload = false;
+forceSkipReload = localStorage.getItem('forceSkipReload') === 'true';
+if(forceSkipReload) {
+ setTimeout(() => {
+ createNewToast('Auto reload still disabled, click version number to reenable.', 'text-bg-warning', 3000, false);
+ }, 1000);
+}
+
/**
* Generic function to create a new toast
* @param {String} message The message to be displayed
@@ -48,3 +55,17 @@ function normalizeToast() {
$('#generalToast').removeClass('text-bg-warning');
$('#generalToast').removeClass('text-bg-info');
}
+
+/**
+ * Function to handle the "secret" function to globally disable auto reload
+ */
+function toggleAutoReload() {
+ forceSkipReload = !forceSkipReload;
+ if(forceSkipReload) {
+ createNewToast('Auto reload disabled', 'text-bg-warning', 1500, false);
+ } else {
+ createNewToast('Auto reload enabled', 'text-bg-success', 1500, false);
+ }
+ // Store the value in local storage
+ localStorage.setItem('forceSkipReload', forceSkipReload);
+}
\ No newline at end of file