* #4698 Move instances of Client.updateActive() in components to an action * Use null for empty success function
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
cadc9e11e4
Коммит
f0f5326098
@@ -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);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user