From 385e6d4b94194d18ee9e830c768750446c2e6c02 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Tue, 27 Jun 2023 18:35:37 +0500 Subject: [PATCH] UBER-462: prevent creating existing enum value and disable the button in that case Signed-off-by: Vyacheslav Tumanov --- packages/ui/src/components/ActionIcon.svelte | 7 ++++++- .../setting-resources/src/components/EnumValues.svelte | 9 ++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/ActionIcon.svelte b/packages/ui/src/components/ActionIcon.svelte index 7c71aac9b8..37a803ebbf 100644 --- a/packages/ui/src/components/ActionIcon.svelte +++ b/packages/ui/src/components/ActionIcon.svelte @@ -28,6 +28,7 @@ export let size: 'x-small' | 'small' | 'medium' | 'large' export let action: (ev: MouseEvent) => Promise | void = async () => {} export let invisible: boolean = false + export let disabled: boolean = false