diff --git a/gulpfile.js b/gulpfile.js
index bdb38c395..3c0a82e16 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -98,7 +98,7 @@ const refactoredSrc = [
"./src/js/sound.js",
"./src/js/custom-text.js",
"./src/js/shift-tracker.js",
- "./src/js/test-stats.js",
+ "./src/js/test/test-stats.js",
"./src/js/theme-colors.js",
];
diff --git a/src/js/dom-util.js b/src/js/dom-util.js
index 631dd2332..c3333882f 100644
--- a/src/js/dom-util.js
+++ b/src/js/dom-util.js
@@ -6,6 +6,18 @@ export function hideBackgroundLoader() {
$("#backgroundLoader").stop(true, true).fadeOut(125);
}
+function accountIconLoading(truefalse) {
+ if (truefalse) {
+ $("#top #menu .account .icon").html(
+ ''
+ );
+ $("#top #menu .account").css("opacity", 1).css("pointer-events", "none");
+ } else {
+ $("#top #menu .account .icon").html('');
+ $("#top #menu .account").css("opacity", 1).css("pointer-events", "auto");
+ }
+}
+
export function swapElements(
el1,
el2,
diff --git a/src/js/global-dependencies.js b/src/js/global-dependencies.js
index 0115198cf..847505c5f 100644
--- a/src/js/global-dependencies.js
+++ b/src/js/global-dependencies.js
@@ -24,6 +24,7 @@ import {
showBackgroundLoader,
hideBackgroundLoader,
swapElements,
+ accountIconLoading,
} from "./dom-util";
import * as Misc from "./misc";
import * as CloudFunctions from "./cloud-functions";
diff --git a/src/js/test-stats.js b/src/js/test/test-stats.js
similarity index 100%
rename from src/js/test-stats.js
rename to src/js/test/test-stats.js