This commit is contained in:
ThatOneCalculator 2022-09-13 17:16:27 -07:00
parent 399f0115be
commit 2be92040b0

View File

@ -72,7 +72,7 @@ function invite() {
userId: user.id userId: user.id
}); });
}); });
}, }
function removeUser(user) { function removeUser(user) {
os.api('users/groups/pull', { os.api('users/groups/pull', {
@ -81,7 +81,7 @@ function removeUser(user) {
}).then(() => { }).then(() => {
this.users = this.users.filter(x => x.id !== user.id); this.users = this.users.filter(x => x.id !== user.id);
}); });
}, }
async function renameGroup() { async function renameGroup() {
const { canceled, result: name } = await os.inputText({ const { canceled, result: name } = await os.inputText({
@ -96,7 +96,7 @@ async function renameGroup() {
}); });
this.group.name = name; this.group.name = name;
}, }
function transfer() { function transfer() {
os.selectUser().then(user => { os.selectUser().then(user => {
@ -105,7 +105,7 @@ function transfer() {
userId: user.id userId: user.id
}); });
}); });
}, }
async function deleteGroup() { async function deleteGroup() {
const { canceled } = await os.confirm({ const { canceled } = await os.confirm({