mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-12 20:10:14 +00:00
fix: disable animations not respected on authorize and logout page
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import SignInWrapper from '$lib/components/login-wrapper.svelte';
|
import SignInWrapper from '$lib/components/login-wrapper.svelte';
|
||||||
import { Button } from '$lib/components/ui/button';
|
import { Button } from '$lib/components/ui/button';
|
||||||
import * as Card from '$lib/components/ui/card';
|
import * as Card from '$lib/components/ui/card';
|
||||||
|
import { m } from '$lib/paraglide/messages';
|
||||||
import OidcService from '$lib/services/oidc-service';
|
import OidcService from '$lib/services/oidc-service';
|
||||||
import WebAuthnService from '$lib/services/webauthn-service';
|
import WebAuthnService from '$lib/services/webauthn-service';
|
||||||
import appConfigStore from '$lib/stores/application-configuration-store';
|
import appConfigStore from '$lib/stores/application-configuration-store';
|
||||||
@@ -14,7 +15,6 @@
|
|||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
import ClientProviderImages from './components/client-provider-images.svelte';
|
import ClientProviderImages from './components/client-provider-images.svelte';
|
||||||
import ScopeItem from './components/scope-item.svelte';
|
import ScopeItem from './components/scope-item.svelte';
|
||||||
import { m } from '$lib/paraglide/messages';
|
|
||||||
|
|
||||||
const webauthnService = new WebAuthnService();
|
const webauthnService = new WebAuthnService();
|
||||||
const oidService = new OidcService();
|
const oidService = new OidcService();
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
{#if client == null}
|
{#if client == null}
|
||||||
<p>{m.client_not_found()}</p>
|
<p>{m.client_not_found()}</p>
|
||||||
{:else}
|
{:else}
|
||||||
<SignInWrapper animate showAlternativeSignInMethodButton>
|
<SignInWrapper animate={!$appConfigStore.disableAnimations} showAlternativeSignInMethodButton>
|
||||||
<ClientProviderImages {client} {success} error={!!errorMessage} />
|
<ClientProviderImages {client} {success} error={!!errorMessage} />
|
||||||
<h1 class="font-playfair mt-5 text-3xl font-bold sm:text-4xl">
|
<h1 class="font-playfair mt-5 text-3xl font-bold sm:text-4xl">
|
||||||
{m.sign_in_to({ name: client.name })}
|
{m.sign_in_to({ name: client.name })}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
import { Button } from '$lib/components/ui/button';
|
import { Button } from '$lib/components/ui/button';
|
||||||
import { m } from '$lib/paraglide/messages';
|
import { m } from '$lib/paraglide/messages';
|
||||||
import WebAuthnService from '$lib/services/webauthn-service';
|
import WebAuthnService from '$lib/services/webauthn-service';
|
||||||
|
import appConfigStore from '$lib/stores/application-configuration-store';
|
||||||
import userStore from '$lib/stores/user-store.js';
|
import userStore from '$lib/stores/user-store.js';
|
||||||
import { axiosErrorToast } from '$lib/utils/error-util.js';
|
import { axiosErrorToast } from '$lib/utils/error-util.js';
|
||||||
|
|
||||||
@@ -26,7 +27,7 @@
|
|||||||
<title>{m.logout()}</title>
|
<title>{m.logout()}</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<SignInWrapper animate>
|
<SignInWrapper animate={!$appConfigStore.disableAnimations}>
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
<div class="bg-muted rounded-2xl p-3">
|
<div class="bg-muted rounded-2xl p-3">
|
||||||
<Logo class="h-10 w-10" />
|
<Logo class="h-10 w-10" />
|
||||||
|
|||||||
Reference in New Issue
Block a user