|
|
@ -1,5 +1,10 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { Body, Multiselect, ModalContent } from "@budibase/bbui" |
|
|
import { |
|
|
|
|
|
Body, |
|
|
|
|
|
Multiselect, |
|
|
|
|
|
ModalContent, |
|
|
|
|
|
notifications, |
|
|
|
|
|
} from "@budibase/bbui" |
|
|
import { users } from "stores/portal" |
|
|
import { users } from "stores/portal" |
|
|
|
|
|
|
|
|
export let app |
|
|
export let app |
|
|
@ -10,7 +15,7 @@ |
|
|
|
|
|
|
|
|
function updateUserRoles() { |
|
|
function updateUserRoles() { |
|
|
users.updateRoles({ ...user, roles: { ...user.roles, [app._id]: roles } }) |
|
|
users.updateRoles({ ...user, roles: { ...user.roles, [app._id]: roles } }) |
|
|
console.log("updating roles!") |
|
|
notifications.success("Roles updated") |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
@ -23,7 +28,7 @@ |
|
|
showCloseIcon={false} |
|
|
showCloseIcon={false} |
|
|
> |
|
|
> |
|
|
<Body noPadding |
|
|
<Body noPadding |
|
|
>Select the roles that this user should use for the {app.name}.</Body |
|
|
>Update {user.email}'s roles for <strong>{app.name}</strong>.</Body |
|
|
> |
|
|
> |
|
|
<Multiselect |
|
|
<Multiselect |
|
|
placeholder={null} |
|
|
placeholder={null} |
|
|
|