hide bitrix id (#3207)

Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
Ruslan Bayandinov 2023-05-18 00:09:43 +07:00 committed by GitHub
parent 36245f8f57
commit 683efe95b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 67 additions and 50 deletions

View File

@ -14,7 +14,19 @@
// limitations under the License.
//
import { ArrOf, Builder, Collection, Mixin, Model, Prop, ReadOnly, TypeRef, TypeString, UX } from '@hcengineering/model'
import {
ArrOf,
Builder,
Collection,
Hidden,
Mixin,
Model,
Prop,
ReadOnly,
TypeRef,
TypeString,
UX
} from '@hcengineering/model'
import core, { TAttachedDoc, TDoc } from '@hcengineering/model-core'
import bitrix from './plugin'
@ -36,8 +48,10 @@ const DOMAIN_BITRIX = 'bitrix' as Domain
@UX(getEmbeddedLabel('Bitrix'))
export class TBitrixSyncDoc extends TDoc implements BitrixSyncDoc {
type!: string
@Prop(TypeString(), getEmbeddedLabel('BitrixId'))
@ReadOnly()
@Hidden()
bitrixId!: string
}

View File

@ -197,8 +197,10 @@
{/if}
{#each mixins as mixin}
{@const mixinKeys = getMixinKeys(mixin._id)}
{#if mixinKeys.length}
<div class="divider" />
{#each getMixinKeys(mixin._id) as key (typeof key === 'string' ? key : key.key)}
{#each mixinKeys as key (typeof key === 'string' ? key : key.key)}
<AttributeBarEditor
{key}
_class={mixin._id}
@ -207,5 +209,6 @@
size={'medium'}
/>
{/each}
{/if}
{/each}
</div>

View File

@ -53,6 +53,7 @@
$: collapsed = getCollapsed(_class, nonEmpty)
</script>
{#if keys.length}
<!-- svelte-ignore a11y-click-events-have-key-events -->
{#if showHeader}
<div
@ -93,7 +94,6 @@
</div>
</div>
{/if}
{#if keys.length}
<div class="collapsed-container" class:collapsed>
<AttributesBar {_class} {object} {keys} {readonly} {draft} on:update />
</div>