projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove rowsPerPageOptions optionality
[arvados-workbench2.git]
/
src
/
store
/
auth
/
auth-action.ts
diff --git
a/src/store/auth/auth-action.ts
b/src/store/auth/auth-action.ts
index a6e6f79794db27bc64178b6f53626c6e688c3865..e9930a02836da5d66c7e062813a5fd292784f973 100644
(file)
--- a/
src/store/auth/auth-action.ts
+++ b/
src/store/auth/auth-action.ts
@@
-7,7
+7,7
@@
import { Dispatch } from "redux";
import { authService } from "../../services/services";
import { User } from "../../models/user";
import { authService } from "../../services/services";
import { User } from "../../models/user";
-
const a
ctions = unionize({
+
export const authA
ctions = unionize({
SAVE_API_TOKEN: ofType<string>(),
LOGIN: {},
LOGOUT: {},
SAVE_API_TOKEN: ofType<string>(),
LOGIN: {},
LOGOUT: {},
@@
-20,13
+20,11
@@
const actions = unionize({
});
export const getUserDetails = () => (dispatch: Dispatch): Promise<User> => {
});
export const getUserDetails = () => (dispatch: Dispatch): Promise<User> => {
- dispatch(actions.USER_DETAILS_REQUEST());
+ dispatch(a
uthA
ctions.USER_DETAILS_REQUEST());
return authService.getUserDetails().then(details => {
return authService.getUserDetails().then(details => {
- dispatch(actions.USER_DETAILS_SUCCESS(details));
+ dispatch(a
uthA
ctions.USER_DETAILS_SUCCESS(details));
return details;
});
};
return details;
});
};
-
-export type AuthAction = UnionOf<typeof actions>;
-export default actions;
+export type AuthAction = UnionOf<typeof authActions>;