diff --git a/frontend/src/settings/APIKeys.tsx b/frontend/src/settings/APIKeys.tsx index a81644fa..c1f88e8f 100644 --- a/frontend/src/settings/APIKeys.tsx +++ b/frontend/src/settings/APIKeys.tsx @@ -98,8 +98,8 @@ export default function APIKeys() { }, []); return ( -
-
+
+

{t('settings.apiKeys.description')} @@ -115,71 +115,87 @@ export default function APIKeys() {

-
-
- - - - - - - - - - - {loading ? ( - - ) : !apiKeys?.length ? ( - - +
+
+
+
- {t('settings.apiKeys.name')} - - {t('settings.apiKeys.sourceDoc')} - - {t('settings.apiKeys.key')} - - Actions -
- {t('settings.apiKeys.noData')} -
+ + + + + + - ) : ( - Array.isArray(apiKeys) && - apiKeys.map((element, index) => ( - - - - - + + {loading ? ( + + ) : !apiKeys?.length ? ( + + - )) - )} - -
+ {t('settings.apiKeys.name')} + + {t('settings.apiKeys.sourceDoc')} + + + {t('settings.apiKeys.key')} + + + {t('settings.apiKeys.key')} + + + Actions +
{element.name}{element.source} - {element.key} - - {`Delete - setKeyToDelete({ - id: element.id, - name: element.name, - }) - } - /> +
+ {t('settings.apiKeys.noData')}
+ ) : ( + Array.isArray(apiKeys) && + apiKeys.map((element, index) => ( + + + {element.name} + + + {element.source} + + + {element.key} + + +
+ +
+ + + )) + )} + + +
- +
{isCreateModalOpen && ( setKeyToDelete(null)} /> )} -
); } diff --git a/frontend/src/settings/Documents.tsx b/frontend/src/settings/Documents.tsx index a8447296..c87e78d5 100644 --- a/frontend/src/settings/Documents.tsx +++ b/frontend/src/settings/Documents.tsx @@ -272,7 +272,7 @@ export default function Documents({ currentDocuments.map((document, index) => ( setShowDocumentChunks(document)} >