Login fixes

This commit is contained in:
WardPearce
2026-03-02 21:15:52 +13:00
parent c50231b4d0
commit ff1dbb44b3
4 changed files with 17 additions and 6 deletions
+8
View File
@@ -4,6 +4,14 @@
<selectionStates>
<SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" />
<DropdownSelection timestamp="2026-03-02T08:05:49.685303023Z">
<Target type="DEFAULT_BOOT">
<handle>
<DeviceId pluginId="LocalEmulator" identifier="path=/home/wpearce/.android/avd/Television_4K.avd" />
</handle>
</Target>
</DropdownSelection>
<DialogSelection />
</SelectionState>
</selectionStates>
</component>
@@ -233,6 +233,7 @@
onInput={setColor}
position="responsive"
isAlpha={false}
hex={get(themeColorStore)}
sliderDirection="horizontal"
/>
</div>
+1 -1
View File
@@ -192,7 +192,7 @@
<div>{$_('layout.settings')}</div>
</a>
{#if showLogin}
{#if (!$invidiousAuthStore && !isOwnBackend()?.internalAuth) || !$rawMasterKeyStore}
{#if (!$invidiousAuthStore && !isOwnBackend()?.internalAuth) || (!$rawMasterKeyStore && isOwnBackend()?.internalAuth)}
<a onclick={login} href="#login">
<i>login</i>
<div>{$_('layout.login')}</div>
+7 -5
View File
@@ -1,15 +1,13 @@
import { goto } from '$app/navigation';
import { resolve } from '$app/paths';
import { getPopular, HTTPError } from '$lib/api/index';
import { isYTBackend } from '$lib/misc';
import { feedCacheStore, invidiousInstanceStore } from '$lib/store';
import { error } from '@sveltejs/kit';
import { feedCacheStore, invidiousInstanceStore, isAndroidTvStore } from '$lib/store';
import { error, redirect } from '@sveltejs/kit';
import { get } from 'svelte/store';
export async function load() {
if (isYTBackend()) {
goto(resolve('/subscriptions', {}), { replaceState: true });
return;
throw redirect(307, resolve('/subscriptions', {}));
}
if (!get(invidiousInstanceStore)) {
@@ -44,6 +42,10 @@ export async function load() {
);
}
if (popularDisabled && get(isAndroidTvStore)) {
throw redirect(307, resolve('/search', {}));
}
return {
popularDisabled: popularDisabled
};