18559: Add tri-state account status indicator and associated context menu actions
[arvados-workbench2.git] / src / store / auth / auth-action.ts
index d58a8103d28c1309d422f5cd4556c92cfbea3840..7fc9df774358a73d3d9448e604f83bf8693242c0 100644 (file)
@@ -80,6 +80,10 @@ export const getConfig = (dispatch: Dispatch, getState: () => RootState, service
     return state.remoteHostsConfig[state.localCluster];
 };
 
+export const getLocalCluster = (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository): string => {
+    return getState().auth.localCluster;
+};
+
 export const saveApiToken = (token: string) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository): Promise<any> => {
     let config: any;
     const tokenParts = token.split('/');