fix(setup): hide YouTube/Google affordances when Google sign-in isn't configured

- /api/me exposes instance-wide google_enabled. The onboarding nudge no longer auto-opens, and
  Settings hides the YouTube-access section + the 'Connect Google' option, when the instance has
  no Google OAuth configured (e.g. an email+password-only self-host). A linked account still shows
  its 'Connected' status.
This commit is contained in:
npeter83 2026-06-21 02:06:37 +02:00
parent 659e175755
commit bc4bc20472
4 changed files with 53 additions and 28 deletions

View file

@ -11,6 +11,7 @@ export interface Me {
is_demo: boolean;
has_google: boolean;
has_password: boolean;
google_enabled: boolean;
can_read: boolean;
can_write: boolean;
pending_invites: number;