X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/73122efb6429184611d17b3278ecbe9c2e26a6c2..ab13bb0f02c562635b95b3bdf908bd9941d149e4:/src/index.tsx

diff --git a/src/index.tsx b/src/index.tsx
index 2d62194bd3..0b04c29e4c 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -19,6 +19,7 @@ import { createServices } from "services/services";
 import { MuiThemeProvider } from '@material-ui/core/styles';
 import { CustomTheme } from 'common/custom-theme';
 import { fetchConfig } from 'common/config';
+import servicesProvider from 'common/service-provider';
 import { addMenuActionSet, ContextMenuKind } from 'views-components/context-menu/context-menu';
 import { rootProjectActionSet } from "views-components/context-menu/action-sets/root-project-action-set";
 import { filterGroupActionSet, projectActionSet, readOnlyProjectActionSet } from "views-components/context-menu/action-sets/project-action-set";
@@ -58,6 +59,7 @@ import { linkActionSet } from 'views-components/context-menu/action-sets/link-ac
 import { loadFileViewersConfig } from 'store/file-viewers/file-viewers-actions';
 import { processResourceAdminActionSet } from 'views-components/context-menu/action-sets/process-resource-admin-action-set';
 import { filterGroupAdminActionSet, projectAdminActionSet } from 'views-components/context-menu/action-sets/project-admin-action-set';
+import { permissionEditActionSet } from 'views-components/context-menu/action-sets/permission-edit-action-set';
 import { snackbarActions, SnackbarKind } from "store/snackbar/snackbar-actions";
 import { openNotFoundDialog } from './store/not-found-panel/not-found-panel-action';
 import { storeRedirects } from './common/redirect-to';
@@ -98,6 +100,7 @@ addMenuActionSet(ContextMenuKind.COLLECTION_ADMIN, collectionAdminActionSet);
 addMenuActionSet(ContextMenuKind.PROCESS_ADMIN, processResourceAdminActionSet);
 addMenuActionSet(ContextMenuKind.PROJECT_ADMIN, projectAdminActionSet);
 addMenuActionSet(ContextMenuKind.FILTER_GROUP_ADMIN, filterGroupAdminActionSet);
+addMenuActionSet(ContextMenuKind.PERMISSION_EDIT, permissionEditActionSet);
 
 storeRedirects();
 
@@ -136,6 +139,10 @@ fetchConfig()
                 }
             }
         });
+
+        // be sure this is initiated before the app starts
+        servicesProvider.setServices(services);
+
         const store = configureStore(history, services, config);
 
         store.subscribe(initListener(history, store, services, config));
