From 9a12e3c67428414fa97df57171b5edfbf8de4dc9 Mon Sep 17 00:00:00 2001 From: aNOOBis <69043738+aNOOBisTheGod@users.noreply.github.com> Date: Sun, 26 Jun 2022 03:25:36 -0700 Subject: [PATCH] View account page fix (#3234) anoobisthegod * spacebar in presets and tags addition * super mega spacebar remake * style fix * final name removal in ui * replaceAll in ape removal * using display above account chart * create preset in command line addition * testing removal * one more testing removal * create tag command line addition * Update commandline-lists.ts * moved add commands to the bottom hiding if user is not signed in * refactor * hiding tags and presets when signed out * fixed presets and tags display in alerts * russian_25k and russian_50k addition * russian 375k addition * lil fix * fixed windows auto-reload error * Revert "fixed windows auto-reload error" This reverts commit ea226212322db148a9d7923ca1717cb9818161a4. * Revert "Revert "fixed windows auto-reload error"" This reverts commit 669cec42171e755623fa71bde1a3daf6f91537c6. * Revert "Revert "Revert "fixed windows auto-reload error""" This reverts commit d90352633cd3d431505a2b1f02e864e8dc773e14. * themes popup small fix * using && * some typos fixed * view account page fix Co-authored-by: Miodec Co-authored-by: Vasiliy Novozhilov --- frontend/src/ts/elements/commandline-lists.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/elements/commandline-lists.ts b/frontend/src/ts/elements/commandline-lists.ts index 5eff9bd43..5db7905e5 100644 --- a/frontend/src/ts/elements/commandline-lists.ts +++ b/frontend/src/ts/elements/commandline-lists.ts @@ -3177,8 +3177,8 @@ export const defaultCommands: MonkeyTypes.CommandsGroup = { alias: "stats", exec: (): void => { $("#top #menu .text-button.view-account").hasClass("hidden") - ? $("#top #menu .text-button.view-login").trigger("click") - : $("#top #menu .text-button.view-account").trigger("click"); + ? navigate("/login") + : navigate("/account"); }, }, {