enhance(client): improve usability of user select

This commit is contained in:
syuilo
2023-01-16 05:29:44 +09:00
parent f3c5ca6cf4
commit fbfe42d6f0
3 changed files with 17 additions and 4 deletions

View File

@@ -77,7 +77,9 @@ async function del() {
}
function assign() {
os.selectUser().then(async (user) => {
os.selectUser({
includeSelf: true,
}).then(async (user) => {
await os.apiWithDialog('admin/roles/assign', { roleId: role.id, userId: user.id });
role.users.push(user);
});