adds notifications to roles updating action
This commit is contained in:
parent
ac883053e0
commit
bdca818c48
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
const roleSchema = {
|
const roleSchema = {
|
||||||
name: { displayName: "App" },
|
name: { displayName: "App" },
|
||||||
roles: {},
|
roles: { type: "options" },
|
||||||
}
|
}
|
||||||
|
|
||||||
// Here we need to merge the Apps list and the roles response to get something that makes sense for the table
|
// Here we need to merge the Apps list and the roles response to get something that makes sense for the table
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue