diff --git a/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx b/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx index 85de3a0f..34295919 100644 --- a/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx +++ b/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx @@ -9,7 +9,10 @@ import type { PrefixProxyEditorFieldValue, PrefixProxyEditorState, } from '@/features/authFiles/hooks/useAuthFilesPrefixProxyEditor'; -import { supportsAuthFileWebsockets } from '@/features/authFiles/constants'; +import { + supportsAuthFileUsingApi, + supportsAuthFileWebsockets, +} from '@/features/authFiles/constants'; import styles from '@/pages/AuthFilesPage.module.scss'; export type AuthFilesPrefixProxyEditorModalProps = { @@ -155,6 +158,18 @@ export function AuthFilesPrefixProxyEditorModal(props: AuthFilesPrefixProxyEdito
{t('auth_files.websockets_hint')}
)} + {supportsAuthFileUsingApi(editor.providerKey) && ( +
+ + onChange('usingApi', value)} + disabled={disableControls || editor.saving || !editor.json} + ariaLabel={t('auth_files.using_api_label')} + /> +
{t('auth_files.using_api_hint')}
+
+ )}