14720: Federated login chooser wip
[arvados-workbench2.git] / src / index.tsx
index 1b7a281d6a81798f4f807ca37a643d332ea74ff0..f5eedc73c7e3c8ff1032864670537b564c15a7dc 100644 (file)
@@ -60,6 +60,7 @@ import { groupActionSet } from '~/views-components/context-menu/action-sets/grou
 import { groupMemberActionSet } from '~/views-components/context-menu/action-sets/group-member-action-set';
 import { linkActionSet } from '~/views-components/context-menu/action-sets/link-action-set';
 import { loadFileViewersConfig } from '~/store/file-viewers/file-viewers-actions';
+import { setRemoteHosts } from '~/views/login-panel/login-panel';
 
 console.log(`Starting arvados [${getBuildInfo()}]`);
 
@@ -106,10 +107,11 @@ fetchConfig()
         store.dispatch(setBuildInfo());
         store.dispatch(setCurrentTokenDialogApiHost(apiHost));
         store.dispatch(setUuidPrefix(config.uuidPrefix));
+        store.dispatch(setRemoteHosts(config.remoteHosts));
         store.dispatch(loadVocabulary);
         store.dispatch(loadFileViewersConfig);
 
-        const TokenComponent = (props: any) => <ApiToken authService={services.authService} {...props} />;
+        const TokenComponent = (props: any) => <ApiToken authService={services.authService} config={config} {...props} />;
         const MainPanelComponent = (props: any) => <MainPanel {...props} />;
 
         const App = () =>