-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ebbbc6
commit 8af59b4
Showing
46 changed files
with
346 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
// import { push } from 'connected-react-router' | ||
import { State } from 'reducers' | ||
|
||
import { history } from './App.store' | ||
|
||
export const redirect = (path: string) => (dispatch: any) => { | ||
export const redirect = (path: string) => (dispatch: any, getState: any) => { | ||
if (path.indexOf('$resetPasswordToken') >= 0) { | ||
const state: State = getState() | ||
path = path.replace('$resetPasswordToken', state.auth.resetPasswordToken as string) | ||
} | ||
dispatch(history.push(path)) | ||
} | ||
|
||
export const SAFE_RESTORE = 'SAFE_RESTORE' | ||
export const safeRestore = () => (dispatch: any) => { | ||
export const RESET = 'RESET' | ||
export const reset = () => (dispatch: any) => { | ||
dispatch({ | ||
type: RESET, | ||
}) | ||
} | ||
|
||
export const RESTORE = 'RESTORE' | ||
export const restore = () => (dispatch: any) => { | ||
dispatch({ | ||
type: SAFE_RESTORE, | ||
type: RESTORE, | ||
}) | ||
} | ||
|
||
export const RECAPTCHA_START = 'RECAPTCHA_START' | ||
export const recaptchaStart = () => (dispatch: any) => { | ||
export const RECAPTCHA_REQUEST = 'RECAPTCHA_REQUEST' | ||
export const recaptchaRequest = () => (dispatch: any) => { | ||
dispatch({ | ||
type: RECAPTCHA_START, | ||
type: RECAPTCHA_REQUEST, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
src/frontend/src/app/App.components/Drawer/Drawer.reducers.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
src/frontend/src/app/App.components/ProgressBar/ProgressBar.controller.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
src/frontend/src/app/App.components/ProgressBar/ProgressBar.reducers.tsx
This file was deleted.
Oops, something went wrong.
8 changes: 5 additions & 3 deletions
8
src/frontend/src/app/App.components/Toaster/Toaster.actions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.