Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 96 | Rev 2236 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 96 Rev 2219
Línea 1... Línea 1...
1
import { actionsTypes } from "./auth.types";
1
import { actionsTypes } from './auth.types'
Línea 2... Línea 2...
2
 
2
 
3
export const setPermissions = (permissions) => ({
3
export const setPermissions = (permissions) => ({
4
  type: actionsTypes.SET_PERMISSIONS,
4
  type: actionsTypes.SET_PERMISSIONS,
5
  payload: permissions,
5
  payload: permissions
Línea 6... Línea 6...
6
});
6
})
7
 
7
 
8
export const startLoading = () => ({
8
export const startLoading = () => ({
Línea 9... Línea 9...
9
  type: actionsTypes.START_LOADING,
9
  type: actionsTypes.START_LOADING
10
});
10
})
11
 
11
 
-
 
12
export const stopLoading = () => ({
-
 
13
  type: actionsTypes.STOP_LOADING
-
 
14
})
-
 
15
 
-
 
16
export const logout = () => {
-
 
17
  return (dispatch) => {
-
 
18
    window.localStorage.removeItem('jwt')
-
 
19
    window.localStorage.removeItem('aes')
Línea 12... Línea 20...
12
export const stopLoading = () => ({
20
    dispatch(removeAuth())
13
  type: actionsTypes.STOP_LOADING,
21
  }
14
});
22
}
Línea 15... Línea 23...
15
 
23
 
16
export const login = () => ({
24
export const login = () => ({
17
  type: actionsTypes.LOGIN,
25
  type: actionsTypes.LOGIN