added login to simkl button on frontend

This commit is contained in:
John O'Keefe 2024-07-30 12:57:30 -04:00
parent 0ed827fc9a
commit c6972ad765

View File

@ -1,6 +1,6 @@
<script lang="ts">
import {anilistModal, GetAniListSingleItemAndOpenModal, title} from "./GetAniListSingleItemAndOpenModal.svelte";
import {GetAniListUserWatchingList} from "../wailsjs/go/main/App";
import {GetAniListUserWatchingList, SimklLogin} from "../wailsjs/go/main/App";
import {MediaListSort} from "./anilist/types/AniListTypes";
import type {AniListCurrentUserWatchList} from "./anilist/types/AniListCurrentUserWatchListType"
import Header from "./Header.svelte";
@ -64,6 +64,7 @@
<button class="btn" on:click={anilistGetUserWatchlist}>Login to AniList</button>
<button class="btn" on:click={SimklLogin}>Login to Simkl</button>
{#if aniListLoggedIn}
<div>You are logged in {aniListWatchlist.data.Page.mediaList[0].user.name}!</div>
{/if}