[ARVADOS-WORKBENCH2] updated: 1.3.0-256-g283e54cc

Git user git at public.curoverse.com
Thu Dec 27 06:24:15 EST 2018


Summary of changes:
 src/store/users/users-actions.ts | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

       via  283e54cc304d07d92b5e1c6810e002610118fd09 (commit)
      from  8753f89e9f786a12cf72374ffb1c9146b598d285 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 283e54cc304d07d92b5e1c6810e002610118fd09
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Thu Dec 27 12:24:00 2018 +0100

    refs #14565-admin-managing-user-login-as-someone
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/store/users/users-actions.ts b/src/store/users/users-actions.ts
index 4780aa72..c1bad88b 100644
--- a/src/store/users/users-actions.ts
+++ b/src/store/users/users-actions.ts
@@ -12,7 +12,7 @@ import { snackbarActions, SnackbarKind } from '~/store/snackbar/snackbar-actions
 import { UserResource } from "~/models/user";
 import { getResource } from '~/store/resources/resources';
 import { navigateToProject, navigateToUsers, navigateToRootProject } from "~/store/navigation/navigation-action";
-import { saveApiToken } from '~/store/auth/auth-action';
+import { saveApiToken, getUserDetails } from '~/store/auth/auth-action';
 
 export const USERS_PANEL_ID = 'usersPanel';
 export const USER_ATTRIBUTES_DIALOG = 'userAttributesDialog';
@@ -53,8 +53,10 @@ export const loginAs = (uuid: string) =>
     async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
         const client = await services.apiClientAuthorizationService.get(uuid);
         dispatch<any>(saveApiToken(client.apiToken));
-        location.reload();
-        dispatch<any>(navigateToRootProject);
+        dispatch<any>(getUserDetails()).then(() => {
+            location.reload();
+            dispatch<any>(navigateToRootProject);
+        });
     };
 
 export const openUserCreateDialog = () =>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list