mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 16:03:02 +00:00
fix(settings): the integrations tab is always there on desktop so api keys stay reachable
API keys were split off from MCP to work without any addon, but the tab that holds them still hid unless a photo provider, MCP, AirTrail, AI Parsing or Dawarich was enabled. On a fresh install all of those are off, so there was no way to create a key. The desktop tab now always shows; the addon backed sections inside it keep their own gates. The phone layout has no API Keys section and keeps its gate. The wiki now says where keys are created and that no addon is needed. Refs #2561
This commit is contained in:
@@ -4,9 +4,11 @@ import { useAuthStore } from '../../store/authStore';
|
||||
|
||||
/**
|
||||
* Which integrations the settings shells offer: the addon flags behind each
|
||||
* integration section, whether any of them is on (the Integrations tab only shows
|
||||
* then), and whether this is a managed install. With `reloadAddons` the addon list
|
||||
* is fetched again on mount, as the integrations tab on both shells does.
|
||||
* integration section, whether any of them is on, and whether this is a managed
|
||||
* install. The desktop Integrations tab shows regardless, since its API keys need
|
||||
* no addon; the mobile one has no API keys and only shows when `hasIntegrations`.
|
||||
* With `reloadAddons` the addon list is fetched again on mount, as the
|
||||
* integrations tab on both shells does.
|
||||
*/
|
||||
export function useIntegrationGates({ reloadAddons }: { reloadAddons: boolean }) {
|
||||
const { isEnabled: addonEnabled, loadAddons } = useAddonStore();
|
||||
|
||||
Reference in New Issue
Block a user