mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 16:09:39 +00:00
some reactive changes
This commit is contained in:
@@ -188,8 +188,12 @@
|
||||
<SchemaEditorProperty {property} />
|
||||
</td>
|
||||
<td>{property.description}</td>
|
||||
<td>{JSON.stringify(property.default) ?? ''}</td>
|
||||
<td>{schema.required.includes(name) ? 'Required' : 'Optional'}</td>
|
||||
<td>{property.default ? JSON.stringify(property.default) : ''}</td>
|
||||
<td
|
||||
>{#if schema.required.includes(name)}
|
||||
<span class="text-red-600 font-bold text-lg">*</span>
|
||||
{/if}</td
|
||||
>
|
||||
<td class="justify-end flex">
|
||||
<Button
|
||||
color="red"
|
||||
|
||||
@@ -5,10 +5,12 @@
|
||||
export let property: SchemaProperty
|
||||
</script>
|
||||
|
||||
<Badge color="blue">{property.type?.toUpperCase() ?? 'ANY'}</Badge>
|
||||
{#if property.format}
|
||||
<Badge color="green">{property.format?.toUpperCase()}</Badge>
|
||||
{/if}
|
||||
{#if property.contentEncoding}
|
||||
<Badge color="indigo">{property.contentEncoding?.toUpperCase()}</Badge>
|
||||
{/if}
|
||||
<div class="flex flex-row flex-wrap gap-1">
|
||||
<Badge color="blue">{property.type?.toUpperCase() ?? 'ANY'}</Badge>
|
||||
{#if property.format}
|
||||
<Badge color="green">{property.format?.toUpperCase()}</Badge>
|
||||
{/if}
|
||||
{#if property.contentEncoding}
|
||||
<Badge color="indigo">{property.contentEncoding?.toUpperCase()}</Badge>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user