diff --git a/frontend/src/webparts/approvalAdmin/components/ApprovalAdmin.tsx b/frontend/src/webparts/approvalAdmin/components/ApprovalAdmin.tsx index d4f0df1..7064d0c 100644 --- a/frontend/src/webparts/approvalAdmin/components/ApprovalAdmin.tsx +++ b/frontend/src/webparts/approvalAdmin/components/ApprovalAdmin.tsx @@ -5,6 +5,7 @@ import { AdminApp } from './app/AdminApp'; import { ApprovalRouteApi } from '../services/api'; import { AadApiHttpClient, DevApiHttpClient, IHttpClient } from '../services/httpClient'; import { PortalDictionaryClient } from '../services/portalDictionary'; +import { texts } from '../texts'; const FONTS_LINK_ID = 'tnsu-approval-admin-fonts'; @@ -69,12 +70,12 @@ const ApprovalAdmin: React.FC = props => {
{error && (
- Не удалось подключиться к API: {error} + {texts.app.connectFailed(error)}
- Проверьте свойства веб-части (Api Base Url, режим авторизации) в панели настроек. + {texts.app.connectHint}
)} - {!error && !api &&
Подключение к API...
} + {!error && !api &&
{texts.app.connecting}
} {api && ( = ({ active, onSelect }) => { return (