use constants instead of hard coding:
This commit is contained in:
parent
8b8bce186c
commit
a7241487fd
|
@ -44,8 +44,8 @@
|
||||||
let email
|
let email
|
||||||
let error
|
let error
|
||||||
let form
|
let form
|
||||||
let creationRoleType = "appUser"
|
let creationRoleType = BudibaseRoles.AppUser
|
||||||
let creationAccessType = "BASIC"
|
let creationAccessType = Constants.Roles.BASIC
|
||||||
|
|
||||||
let appInvites = []
|
let appInvites = []
|
||||||
let filteredInvites = []
|
let filteredInvites = []
|
||||||
|
@ -770,7 +770,7 @@
|
||||||
)}
|
)}
|
||||||
label="Role"
|
label="Role"
|
||||||
/>
|
/>
|
||||||
{#if creationRoleType !== "ADMIN"}
|
{#if creationRoleType !== Constants.Roles.ADMIN}
|
||||||
<RoleSelect
|
<RoleSelect
|
||||||
placeholder={false}
|
placeholder={false}
|
||||||
bind:value={creationAccessType}
|
bind:value={creationAccessType}
|
||||||
|
|
Loading…
Reference in New Issue