From 6387d5725d6d1ea9fc17ad44f57fc992b44f0f56 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 4 Oct 2022 13:39:59 +0200 Subject: [PATCH] changed sign in icon to a user icon --- frontend/src/ts/controllers/account-controller.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/frontend/src/ts/controllers/account-controller.ts b/frontend/src/ts/controllers/account-controller.ts index 06c9ec10c..5bec77204 100644 --- a/frontend/src/ts/controllers/account-controller.ts +++ b/frontend/src/ts/controllers/account-controller.ts @@ -294,9 +294,7 @@ if (Auth) { ); await loadUser(user); } else { - $("#top .signInOut .icon").html( - `` - ); + $("#top .signInOut .icon").html(``); if (window.location.pathname == "/account") { window.history.replaceState("", "", "/login"); } @@ -331,7 +329,7 @@ if (Auth) { // await UpdateConfig.loadPromise; const search = window.location.search; const hash = window.location.hash; - $("#top .signInOut .icon").html(``); + $("#top .signInOut .icon").html(``); if (window.location.pathname == "/account") { window.history.replaceState("", "", "/login"); } @@ -548,9 +546,7 @@ export function signOut(): void { DB.setSnapshot(defaultSnap); $(".pageLogin .button").removeClass("disabled"); $(".pageLogin input").prop("disabled", false); - $("#top .signInOut .icon").html( - `` - ); + $("#top .signInOut .icon").html(``); hideFavoriteQuoteLength(); }) .catch(function (error) {