Merge branch 'origin/master' into 14478-log-in-into-clusters
[arvados-workbench2.git] / src / index.tsx
index 508fa7c3dad5cb140246352cb821b56c98d49d7a..1b7a281d6a81798f4f807ca37a643d332ea74ff0 100644 (file)
@@ -59,6 +59,7 @@ import { apiClientAuthorizationActionSet } from '~/views-components/context-menu
 import { groupActionSet } from '~/views-components/context-menu/action-sets/group-action-set';
 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';
 
 console.log(`Starting arvados [${getBuildInfo()}]`);
 
@@ -101,11 +102,12 @@ fetchConfig()
         const store = configureStore(history, services);
 
         store.subscribe(initListener(history, store, services, config));
-        store.dispatch(initAuth());
+        store.dispatch(initAuth(config));
         store.dispatch(setBuildInfo());
         store.dispatch(setCurrentTokenDialogApiHost(apiHost));
         store.dispatch(setUuidPrefix(config.uuidPrefix));
         store.dispatch(loadVocabulary);
+        store.dispatch(loadFileViewersConfig);
 
         const TokenComponent = (props: any) => <ApiToken authService={services.authService} {...props} />;
         const MainPanelComponent = (props: any) => <MainPanel {...props} />;