diff --git a/frontend/src/helperComponents/AvatarMenu.svelte b/frontend/src/helperComponents/AvatarMenu.svelte index b3de7d9..f18c10c 100644 --- a/frontend/src/helperComponents/AvatarMenu.svelte +++ b/frontend/src/helperComponents/AvatarMenu.svelte @@ -4,20 +4,31 @@ import { aniListLoggedIn, aniListUser, + malUser, + simklUser, malLoggedIn, simklLoggedIn, + loginToAniList, + loginToMAL, + loginToSimkl, logoutOfAniList, logoutOfMAL, logoutOfSimkl, } from "../helperModules/GlobalVariablesAndHelperFunctions.svelte"; import * as runtime from "../../wailsjs/runtime"; + import type {MyAnimeListUser} from "../mal/types/MALTypes"; + import type {SimklUser} from "../simkl/types/simklTypes"; let currentAniListUser: AniListUser; + let currentMALUser: MyAnimeListUser; + let currentSimklUser: SimklUser; let isAniListLoggedIn: boolean; let isSimklLoggedIn: boolean; let isMALLoggedIn: boolean; aniListUser.subscribe((value) => (currentAniListUser = value)); + malUser.subscribe((value) => (currentMALUser = value)) + simklUser.subscribe(value => currentSimklUser = value) aniListLoggedIn.subscribe((value) => (isAniListLoggedIn = value)); simklLoggedIn.subscribe((value) => (isSimklLoggedIn = value)); malLoggedIn.subscribe((value) => (isMALLoggedIn = value)); @@ -59,9 +70,16 @@
  • +
  • + {:else} +
  • +
  • {/if} @@ -69,9 +87,16 @@
  • +
  • + {:else} +
  • +
  • {/if} @@ -79,9 +104,16 @@
  • +
  • + {:else} +
  • +
  • {/if} @@ -95,5 +127,4 @@ - - + \ No newline at end of file