From e8d6a10ab3f7370a5045e559ae0e8cb4c970a011 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Thu, 16 Feb 2023 16:19:48 +0700 Subject: [PATCH] Fix small issues (#2646) Signed-off-by: Andrey Sobolev --- packages/ui/src/components/Label.svelte | 2 +- .../src/components/BitrixConfigure.svelte | 24 ++++++++----------- .../src/components/EditVacancy.svelte | 12 +++++++--- .../src/components/CreateIssue.svelte | 2 ++ .../src/components/Header.svelte | 12 +++++++++- 5 files changed, 33 insertions(+), 19 deletions(-) diff --git a/packages/ui/src/components/Label.svelte b/packages/ui/src/components/Label.svelte index 46df0877e0..5682d0f5a0 100644 --- a/packages/ui/src/components/Label.svelte +++ b/packages/ui/src/components/Label.svelte @@ -30,7 +30,7 @@ } -{#if _value} +{#if _value !== undefined} {_value} {:else} {label} diff --git a/plugins/bitrix-resources/src/components/BitrixConfigure.svelte b/plugins/bitrix-resources/src/components/BitrixConfigure.svelte index df85a6685f..9a378f2a4b 100644 --- a/plugins/bitrix-resources/src/components/BitrixConfigure.svelte +++ b/plugins/bitrix-resources/src/components/BitrixConfigure.svelte @@ -21,11 +21,11 @@ import bitrix from '../plugin' import { BitrixClient, BitrixEntityMapping, BitrixProfile, StatusValue } from '@hcengineering/bitrix' - import { Button, eventToHTMLElement, IconAdd, Label, showPopup } from '@hcengineering/ui' + import { Button, eventToHTMLElement, IconAdd, showPopup } from '@hcengineering/ui' + import { bitrixQueue } from '../queue' import CreateMapping from './CreateMapping.svelte' import EntiryMapping from './EntityMapping.svelte' - import { bitrixQueue } from '../queue' export let integration: Integration @@ -78,18 +78,14 @@ {/if} {#if profile} - {#if !profile.ADMIN} -