prevent username changing

This commit is contained in:
Martin McKeaveney 2020-11-27 14:59:27 +00:00
parent eae0ed5468
commit 4a8c37440e
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,7 @@
<script>
import { Input, Select, Label, DatePicker, Toggle } from "@budibase/bbui"
import { backendUiStore } from "builderStore"
import { TableNames } from "constants"
import Dropzone from "components/common/Dropzone.svelte"
import { capitalise } from "../../../helpers"
import LinkedRowSelector from "components/common/LinkedRowSelector.svelte"
@ -9,6 +11,7 @@
$: type = meta.type
$: label = capitalise(meta.name)
$: userTableSelected = $backendUiStore.selectedTable?._id === TableNames.USERS
</script>
{#if type === 'options'}
@ -30,5 +33,11 @@
{:else if type === 'link'}
<LinkedRowSelector bind:linkedRows={value} schema={meta} />
{:else}
<Input thin {label} data-cy="{meta.name}-input" {type} bind:value />
<Input
thin
{label}
data-cy="{meta.name}-input"
{type}
bind:value
disabled={userTableSelected} />
{/if}