#4698 Move Client.updateActive() in components to an action (#4858)

* #4698 Move instances of Client.updateActive() in components to an action

* Use null for empty success function
Этот коммит содержится в:
Björn Roland
2016-12-21 18:48:06 +01:00
коммит произвёл Harrison Healey
родитель cadc9e11e4
Коммит f0f5326098
3 изменённых файлов: 23 добавлений и 13 удалений

Просмотреть файл

@@ -432,3 +432,20 @@ export function checkMfa(loginId, success, error) {
}
);
}
export function updateActive(userId, active, success, error) {
Client.updateActive(userId, active,
() => {
AsyncClient.getUser(userId);
if (success) {
success();
}
},
(err) => {
if (error) {
error(err);
}
}
);
}