PLT-4697 Update channel switcher to autocomplete all users on the system (#4624)
* Add autocomplete API for system-wide users * Update channel switcher to autocomplete all users on the system
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
ad52183248
Коммит
02d581c159
@@ -318,6 +318,24 @@ export function autocompleteUsersInTeam(username, success, error) {
|
||||
);
|
||||
}
|
||||
|
||||
export function autocompleteUsers(username, success, error) {
|
||||
Client.autocompleteUsers(
|
||||
username,
|
||||
(data) => {
|
||||
if (success) {
|
||||
success(data);
|
||||
}
|
||||
},
|
||||
(err) => {
|
||||
AsyncClient.dispatchError(err, 'autocompleteUsers');
|
||||
|
||||
if (error) {
|
||||
error(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function updateUser(username, success, error) {
|
||||
Client.updateUser(
|
||||
username,
|
||||
|
||||
Ссылка в новой задаче
Block a user