From 31cc19ba7a095c762d1dd9cc19d3095af06815ac Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 26 Oct 2024 21:33:42 -0400 Subject: [PATCH] removed logged in buttons from navigation --- frontend/src/helperComponents/Header.svelte | 48 ++++----------------- frontend/wailsjs/runtime/package.json | 0 frontend/wailsjs/runtime/runtime.d.ts | 0 frontend/wailsjs/runtime/runtime.js | 0 4 files changed, 9 insertions(+), 39 deletions(-) mode change 100755 => 100644 frontend/wailsjs/runtime/package.json mode change 100755 => 100644 frontend/wailsjs/runtime/runtime.d.ts mode change 100755 => 100644 frontend/wailsjs/runtime/runtime.js diff --git a/frontend/src/helperComponents/Header.svelte b/frontend/src/helperComponents/Header.svelte index 9201c4f..f286f9c 100644 --- a/frontend/src/helperComponents/Header.svelte +++ b/frontend/src/helperComponents/Header.svelte @@ -2,38 +2,22 @@ import Search from "./Search.svelte" import { aniListLoggedIn, - aniListUser, loginToAniList, loginToMAL, loginToSimkl, malLoggedIn, - malUser, simklLoggedIn, - simklUser, } from "../helperModules/GlobalVariablesAndHelperFunctions.svelte" - import type {AniListUser} from "../anilist/types/AniListTypes"; - import type {SimklUser} from "../simkl/types/simklTypes"; - import type {MyAnimeListUser} from "../mal/types/MALTypes"; import AvatarMenu from "./AvatarMenu.svelte"; import logo from "../assets/images/AniTrackLogo.svg" - import {location} from "svelte-spa-router"; let isAniListLoggedIn: boolean let isSimklLoggedIn: boolean let isMALLoggedIn: boolean - let currentAniListUser: AniListUser - let currentSimklUser: SimklUser - let currentMALUser: MyAnimeListUser aniListLoggedIn.subscribe((value) => isAniListLoggedIn = value) simklLoggedIn.subscribe((value) => isSimklLoggedIn = value) malLoggedIn.subscribe((value) => isMALLoggedIn = value) - aniListUser.subscribe((value) => currentAniListUser = value) - simklUser.subscribe((value) => currentSimklUser = value) - malUser.subscribe((value) => currentMALUser = value) - - let currentLocation: any - location.subscribe(value => currentLocation = value)