diff --git a/webapp/src/components/AppMainRoutes.tsx b/webapp/src/components/AppMainRoutes.tsx index 6d682a5..4c95a69 100644 --- a/webapp/src/components/AppMainRoutes.tsx +++ b/webapp/src/components/AppMainRoutes.tsx @@ -275,11 +275,6 @@ export default function AppMainRoutes(props: AppMainRoutesProps) { onCreateAccountPasskey={props.onCreateAccountPasskey} onEnableAccountPasskeyDirectUnlock={props.onEnableAccountPasskeyDirectUnlock} onDeleteAccountPasskey={props.onDeleteAccountPasskey} - pendingAuthRequests={props.pendingAuthRequests} - pendingAuthRequestsLoading={props.pendingAuthRequestsLoading} - onRefreshPendingAuthRequests={props.onRefreshPendingAuthRequests} - onApproveAuthRequest={props.onApproveAuthRequest} - onDenyAuthRequest={props.onDenyAuthRequest} onLockTimeoutChange={props.onLockTimeoutChange} onSessionTimeoutActionChange={props.onSessionTimeoutActionChange} onNotify={props.onNotify} diff --git a/webapp/src/components/SecurityDevicesPage.tsx b/webapp/src/components/SecurityDevicesPage.tsx index db9c9b9..d0916e5 100644 --- a/webapp/src/components/SecurityDevicesPage.tsx +++ b/webapp/src/components/SecurityDevicesPage.tsx @@ -89,42 +89,38 @@ export default function SecurityDevicesPage(props: SecurityDevicesPageProps) { />
-
-
-

{t('txt_device_management')}

-
- {t('txt_manage_device_sessions_and_30_day_totp_trusted_sessions')} +
+
+

{t('txt_authorized_devices')}

+
+ {t('txt_manage_device_sessions_and_30_day_totp_trusted_sessions')} +
+
+
+ + +
-
- - - -
-
-
- -
-

{t('txt_authorized_devices')}

- {!!props.error && ( -
- {props.error} - -
- )} - + {!!props.error && ( +
+ {props.error} + +
+ )} +
@@ -233,7 +229,7 @@ export default function SecurityDevicesPage(props: SecurityDevicesPageProps) { )} -
+
diff --git a/webapp/src/components/SettingsPage.tsx b/webapp/src/components/SettingsPage.tsx index 3fd7c20..0715a52 100644 --- a/webapp/src/components/SettingsPage.tsx +++ b/webapp/src/components/SettingsPage.tsx @@ -2,10 +2,9 @@ import { useEffect, useMemo, useState } from 'preact/hooks'; import { Clipboard, KeyRound, RefreshCw, ShieldCheck, ShieldOff, Trash2 } from 'lucide-preact'; import { copyTextToClipboard } from '@/lib/clipboard'; import qrcode from 'qrcode-generator'; -import type { AccountPasskeyCredential, AuthRequest, Profile } from '@/lib/types'; +import type { AccountPasskeyCredential, Profile } from '@/lib/types'; import { AVAILABLE_LOCALES, getLocale, setLocale, t, type Locale } from '@/lib/i18n'; import ConfirmDialog from '@/components/ConfirmDialog'; -import PendingAuthRequestsPanel from '@/components/PendingAuthRequestsPanel'; interface SettingsPageProps { profile: Profile; @@ -23,11 +22,6 @@ interface SettingsPageProps { onCreateAccountPasskey: (name: string, masterPassword: string, directUnlock: boolean) => Promise; onEnableAccountPasskeyDirectUnlock: (id: string, masterPassword: string) => Promise; onDeleteAccountPasskey: (id: string, masterPassword: string) => Promise; - pendingAuthRequests: AuthRequest[]; - pendingAuthRequestsLoading: boolean; - onRefreshPendingAuthRequests: () => Promise; - onApproveAuthRequest: (request: AuthRequest) => Promise; - onDenyAuthRequest: (request: AuthRequest) => Promise; onLockTimeoutChange: (minutes: 0 | 1 | 5 | 15 | 30) => void; onSessionTimeoutActionChange: (action: 'lock' | 'logout') => void; onNotify?: (type: 'success' | 'error' | 'warning', text: string) => void; @@ -515,15 +509,6 @@ export default function SettingsPage(props: SettingsPageProps) { )} - - -