update deps, added logout clear store

This commit is contained in:
Alexander Wong
2018-01-21 12:01:59 -07:00
parent 3c5aa92840
commit 95d86161ec
14 changed files with 984 additions and 821 deletions

View File

@@ -9,7 +9,8 @@ import {
SET_FORM_PASSWORD,
SET_FORM_PASSWORD_CONFIRMATION,
SET_FORM_EMAIL_VERIFICATION,
SET_FORM_OLD_PASSWORD
SET_FORM_OLD_PASSWORD,
SET_CLEAR_AUTH_STATE
} from "../../constants/auth.constants";
import { parseError } from "../common.actions";
@@ -137,3 +138,9 @@ export function setFormOldPassword(oldPassword) {
data: oldPassword
};
}
export function setClearAuthState() {
return {
type: SET_CLEAR_AUTH_STATE
};
}

View File

@@ -10,7 +10,8 @@ import {
SET_FORM_PHONE_NUMBER,
SET_FORM_BUSINESS_NUMBER,
SET_FORM_SOCIAL_INSURANCE_NUMBER,
SET_EDIT_PROFILE_TAB_ACTIVE_INDEX
SET_EDIT_PROFILE_TAB_ACTIVE_INDEX,
SET_CLEAR_USER_STATE
} from "../../constants/user.constants";
import { parseError } from "../common.actions";
@@ -102,3 +103,9 @@ export function setEditProfileTabActiveIndex(indexVal) {
data: indexVal
};
}
export function setClearUserState() {
return {
type: SET_CLEAR_USER_STATE
};
}

View File

@@ -6,7 +6,8 @@ import {
CLEAR_WORKTYPE_REQUEST_SUCCESS,
SET_WORKTYPE_UUID,
SET_FORM_WORKTYPE_COLOR,
SET_FORM_WORKTYPE_LABEL
SET_FORM_WORKTYPE_LABEL,
SET_CLEAR_WORKTYPE_STATE
} from "../../constants/worktype.constants";
import { parseError } from "../common.actions";
@@ -72,3 +73,9 @@ export function setFormWorktypeLabel(label) {
data: label
};
}
export function setClearWorktypeState() {
return {
type: SET_CLEAR_WORKTYPE_STATE
};
}