Lint and update user app tables to use new copy
This commit is contained in:
parent
7f17d2f943
commit
bc48661a64
|
@ -55,6 +55,7 @@
|
|||
},
|
||||
role: {
|
||||
width: "1fr",
|
||||
displayName: "Access",
|
||||
},
|
||||
}
|
||||
const customGroupTableRenderers = [
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<StatusLight square color={RoleUtils.getRoleColour(value)}>
|
||||
{getRoleLabel(value)}
|
||||
</StatusLight>
|
||||
{#if value === Constants.Roles.CREATOR}
|
||||
Can edit
|
||||
{:else}
|
||||
<StatusLight square color={RoleUtils.getRoleColour(value)}>
|
||||
Can use as {getRoleLabel(value)}
|
||||
</StatusLight>
|
||||
{/if}
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
import { emailValidator } from "helpers/validation"
|
||||
import { Constants } from "@budibase/frontend-core"
|
||||
import { capitalise } from "helpers"
|
||||
import { BudibaseRoleOptions } from "@budibase/frontend-core/src/constants"
|
||||
|
||||
const BYTES_IN_MB = 1000000
|
||||
const FILE_SIZE_LIMIT = BYTES_IN_MB * 5
|
||||
const MAX_USERS_UPLOAD_LIMIT = 1000
|
||||
|
||||
export let createUsersFromCsv
|
||||
|
||||
let files = []
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
|
||||
export let row
|
||||
|
||||
const TooltipMap = {
|
||||
appUser: "Only has access to assigned apps",
|
||||
developer: "Access to the app builder",
|
||||
admin: "Full access",
|
||||
}
|
||||
|
||||
$: role = Constants.BudibaseRoleOptions.find(
|
||||
x => x.value === users.getUserRole(row)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue