fixed admin consent msft

This commit is contained in:
ValueOn AG 2026-05-17 00:07:54 +02:00
parent e1260c173c
commit bb441f5268

View file

@ -17,6 +17,7 @@ import type { ConnectorType } from '../../components/AddConnectionWizard/AddConn
import type { KnowledgePreferences } from '../../api/connectionApi';
import { useLanguage } from '../../providers/language/LanguageContext';
import { resolveColumnTypes } from '../../utils/columnTypeResolver';
import { getApiBaseUrl } from '../../../config/config';
const SYNC_BANNER_TTL_MS = 10 * 60 * 1000; // 10 minutes — conservative upper bound for bootstrap
@ -229,6 +230,11 @@ export const ConnectionsPage: React.FC = () => {
}
};
const handleMsftAdminConsent = () => {
const url = `${getApiBaseUrl()}/api/msft/adminconsent`;
window.open(url, 'msft-admin-consent', 'width=560,height=720,scrollbars=yes,resizable=yes');
};
// Form attributes for edit modal
const formAttributes = useMemo(() => {
const excludedFields = [
@ -421,6 +427,7 @@ export const ConnectionsPage: React.FC = () => {
open={wizardOpen}
onClose={() => setWizardOpen(false)}
onConnect={handleWizardConnect}
onMsftAdminConsent={handleMsftAdminConsent}
isConnecting={isConnecting}
/>
</div>