Project managers, board members, auto-update after reconnection, refactoring

This commit is contained in:
Maksim Eltyshev
2021-06-24 01:05:22 +05:00
parent d6cb1f6683
commit b39119ace4
478 changed files with 21226 additions and 19495 deletions
+11 -2
View File
@@ -1,11 +1,20 @@
import { call, put } from 'redux-saga/effects';
import { authenticateRequest } from '../requests';
import { authenticate, clearAuthenticateError } from '../../../actions';
import api from '../../../api';
export function* authenticateService(data) {
yield put(authenticate(data));
yield call(authenticateRequest, data);
let accessToken;
try {
({ item: accessToken } = yield call(api.createAccessToken, data));
} catch (error) {
yield put(authenticate.failure(error));
return;
}
yield put(authenticate.success(accessToken));
}
export function* clearAuthenticateErrorService() {
+1 -1
View File
@@ -12,7 +12,7 @@ export function* goToRootService() {
yield put(push(Paths.ROOT));
}
export function* locationChangedService() {
export function* handleLocationChangeService() {
const pathsMatch = yield select(pathsMatchSelector);
if (!pathsMatch) {