Lint and update user app tables to use new copy

This commit is contained in:
Andrew Kingston 2023-11-24 16:45:37 +00:00
parent 7f17d2f943
commit bc48661a64
4 changed files with 9 additions and 10 deletions

View File

@ -55,6 +55,7 @@
},
role: {
width: "1fr",
displayName: "Access",
},
}
const customGroupTableRenderers = [

View File

@ -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}

View File

@ -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 = []

View File

@ -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)
)