PLT-4572 - Move instances of Client.updateUser() in components to an action (#4571)
* Move instances of Client.updateUser() in components to an action
Этот коммит содержится в:
коммит произвёл
enahum
родитель
be74ec2241
Коммит
091e5b8e03
@@ -317,6 +317,24 @@ export function autocompleteUsersInTeam(username, success, error) {
|
||||
);
|
||||
}
|
||||
|
||||
export function updateUser(username, success, error) {
|
||||
Client.updateUser(
|
||||
username,
|
||||
(data) => {
|
||||
if (success) {
|
||||
success(data);
|
||||
}
|
||||
},
|
||||
(err) => {
|
||||
AsyncClient.dispatchError(err, 'updateUser');
|
||||
|
||||
if (error) {
|
||||
error(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function generateMfaSecret(success, error) {
|
||||
Client.generateMfaSecret(
|
||||
(data) => {
|
||||
|
||||
Ссылка в новой задаче
Block a user