mirror of
https://github.com/immich-app/immich.git
synced 2025-11-27 19:29:55 +09:00
chore: update deps (#14755)
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
let { onSuccess }: Props = $props();
|
||||
|
||||
let errorMessage: string = $state('');
|
||||
let success: string;
|
||||
|
||||
let password = $state('');
|
||||
let passwordConfirm = $state('');
|
||||
@@ -59,9 +58,6 @@
|
||||
<p class="text-sm text-red-400">{errorMessage}</p>
|
||||
{/if}
|
||||
|
||||
{#if success}
|
||||
<p class="text-sm text-immich-primary">{success}</p>
|
||||
{/if}
|
||||
<div class="my-5 flex w-full">
|
||||
<Button type="submit" size="lg" fullwidth>{$t('to_change_password')}</Button>
|
||||
</div>
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
onEditSuccess,
|
||||
}: Props = $props();
|
||||
|
||||
let error: string;
|
||||
let success: string;
|
||||
let quotaSize = $state(user.quotaSizeInBytes ? convertFromBytes(user.quotaSizeInBytes, ByteUnit.GiB) : null);
|
||||
|
||||
const previousQutoa = user.quotaSizeInBytes;
|
||||
@@ -149,14 +147,6 @@
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{#if error}
|
||||
<p class="ml-4 text-sm text-red-400">{error}</p>
|
||||
{/if}
|
||||
|
||||
{#if success}
|
||||
<p class="ml-4 text-sm text-immich-primary">{success}</p>
|
||||
{/if}
|
||||
</form>
|
||||
|
||||
{#snippet stickyBottom()}
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (oauth.isCallback(window.location)) {
|
||||
if (oauth.isCallback(globalThis.location)) {
|
||||
try {
|
||||
await oauth.login(window.location);
|
||||
await oauth.login(globalThis.location);
|
||||
await onSuccess();
|
||||
return;
|
||||
} catch (error) {
|
||||
@@ -46,9 +46,9 @@
|
||||
}
|
||||
|
||||
try {
|
||||
if ($featureFlags.oauthAutoLaunch && !oauth.isAutoLaunchDisabled(window.location)) {
|
||||
if ($featureFlags.oauthAutoLaunch && !oauth.isAutoLaunchDisabled(globalThis.location)) {
|
||||
await goto(`${AppRoute.AUTH_LOGIN}?autoLaunch=0`, { replaceState: true });
|
||||
await oauth.authorize(window.location);
|
||||
await oauth.authorize(globalThis.location);
|
||||
return;
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -85,7 +85,7 @@
|
||||
const handleOAuthLogin = async () => {
|
||||
oauthLoading = true;
|
||||
oauthError = '';
|
||||
const success = await oauth.authorize(window.location);
|
||||
const success = await oauth.authorize(globalThis.location);
|
||||
if (!success) {
|
||||
oauthLoading = false;
|
||||
oauthError = $t('errors.unable_to_login_with_oauth');
|
||||
|
||||
Reference in New Issue
Block a user