update some minor auth ux issues

This commit is contained in:
JCEEE
2026-08-31 15:34:34 +01:00
parent 035dbb829a
commit 852f9edb96
+1 -4
View File
@@ -22,11 +22,8 @@
let accessReason = $derived(data.famAccess?.reason || ''); let accessReason = $derived(data.famAccess?.reason || '');
// Settings stays usable while paused so admins can apply a code / manage billing. // Settings stays usable while paused so admins can apply a code / manage billing.
let hasAuth = $derived(!!data.session); let hasAuth = $derived(!!data.session);
let locked = $derived(disabled && !page.url.pathname.endsWith('/settings')); let locked = $derived((disabled && !page.url.pathname.endsWith('/settings')) || !hasAuth);
$effect(() => {
console.log(data, page.url.pathname.includes('/join'), locked);
});
// ── Post-checkout activation (event-driven) ── // ── Post-checkout activation (event-driven) ──
// Landing with ?checkout=return: if the webhook has already landed we show // Landing with ?checkout=return: if the webhook has already landed we show
// the welcome notice; otherwise show an "activating" state and wait for the // the welcome notice; otherwise show an "activating" state and wait for the