Move instances of Client.inviteMembers() in components to an action (#5154)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
efbaa1eb03
Коммит
784d85f46d
@@ -126,3 +126,19 @@ export function getInviteInfo(inviteId, success, error) {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function inviteMembers(data, success, error) {
|
||||
Client.inviteMembers(
|
||||
data,
|
||||
() => {
|
||||
if (success) {
|
||||
success();
|
||||
}
|
||||
},
|
||||
(err) => {
|
||||
if (err) {
|
||||
error(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user