1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

use constants instead of hard coding:

This commit is contained in:
Peter Clement 2023-08-29 14:45:42 +01:00
parent 8b8bce186c
commit a7241487fd

View file

@ -44,8 +44,8 @@
let email
let error
let form
let creationRoleType = "appUser"
let creationAccessType = "BASIC"
let creationRoleType = BudibaseRoles.AppUser
let creationAccessType = Constants.Roles.BASIC
let appInvites = []
let filteredInvites = []
@ -770,7 +770,7 @@
)}
label="Role"
/>
{#if creationRoleType !== "ADMIN"}
{#if creationRoleType !== Constants.Roles.ADMIN}
<RoleSelect
placeholder={false}
bind:value={creationAccessType}