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