Skip to content

Commit

Permalink
TSK-1311: change kind for editor
Browse files Browse the repository at this point in the history
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
  • Loading branch information
ThetaDR committed Apr 25, 2023
1 parent 56ae021 commit 740200b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/view-resources/src/components/NumberPresenter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
export let value: number | undefined
export let onChange: ((value: number) => void) | undefined = undefined
export let placeholder: IntlString = getEmbeddedLabel(' ')
export let kind: 'no-border' | 'link' | 'button' = 'link'
</script>

{#if onChange !== undefined}
<NumberEditor {onChange} {value} {placeholder}/>
<NumberEditor {onChange} {value} {placeholder} {kind}/>
{:else}
<span>{value || ''}</span>
{/if}

0 comments on commit 740200b

Please sign in to comment.