fix: show context-aware JSON editor hint and hide quick toggles for non-active providers

The hint text and ClaudeQuickToggles were misleading when editing
non-current providers or creating new ones, since the editor only
contains a config snippet rather than the full live settings.json.
This commit is contained in:
Jason
2026-02-26 09:55:09 +08:00
parent 87604b1809
commit 24fa8a18ef
5 changed files with 8 additions and 2 deletions
@@ -192,6 +192,7 @@ export function EditProviderDialog({
onCancel={() => onOpenChange(false)}
initialData={initialData}
showButtons={false}
isCurrent={liveSettings !== null}
/>
</FullScreenPanel>
);