From f6d1a5f477961a21005d77d6f8f0c0effc03e947 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Mon, 4 Oct 2021 18:04:25 +0300 Subject: [PATCH] Add AttributeEditor (#231) Signed-off-by: Alexander Platov --- .../src/components/AttributeEditor.svelte | 51 +++++++++++++++++++ .../src/components/AttributesBar.svelte | 36 +++---------- 2 files changed, 59 insertions(+), 28 deletions(-) create mode 100644 plugins/recruit-resources/src/components/AttributeEditor.svelte diff --git a/plugins/recruit-resources/src/components/AttributeEditor.svelte b/plugins/recruit-resources/src/components/AttributeEditor.svelte new file mode 100644 index 0000000000..305b32e53d --- /dev/null +++ b/plugins/recruit-resources/src/components/AttributeEditor.svelte @@ -0,0 +1,51 @@ + + + + +{#if icon} +
+ + {#if !minimize} +
+
+ {/if} +
+{:else} +
+
+{/if} + + \ No newline at end of file diff --git a/plugins/recruit-resources/src/components/AttributesBar.svelte b/plugins/recruit-resources/src/components/AttributesBar.svelte index 87e6fb0ded..55a89b2b99 100644 --- a/plugins/recruit-resources/src/components/AttributesBar.svelte +++ b/plugins/recruit-resources/src/components/AttributesBar.svelte @@ -17,44 +17,24 @@ import { CircleButton, Label } from '@anticrm/ui' import Location from './icons/Location.svelte' import YesNoPresenter from './YesNoPresenter.svelte' + import AttributeEditor from './AttributeEditor.svelte' - export let minimize: boolean = true + export let minimize: boolean = false
-
- - {#if !minimize} -
-
- {/if} +
+
-
-