Dispatch loadFileViewersConfig from workbench
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Wed, 12 Dec 2018 17:02:11 +0000 (18:02 +0100)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Wed, 12 Dec 2018 17:02:11 +0000 (18:02 +0100)
Feature #13540

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/index.tsx

index e73f08c46ba8b48d2fab54bd5cbe0de89fb3b753..55d0b482f8c1e170a21f0845d1ea1afc07bfc48d 100644 (file)
@@ -57,6 +57,7 @@ import { userActionSet } from '~/views-components/context-menu/action-sets/user-
 import { computeNodeActionSet } from '~/views-components/context-menu/action-sets/compute-node-action-set';
 import { apiClientAuthorizationActionSet } from '~/views-components/context-menu/action-sets/api-client-authorization-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()}]`);
 
@@ -102,6 +103,7 @@ fetchConfig()
         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} />;