mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-08 00:37:42 +00:00
hide bitrix id (#3207)
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
parent
36245f8f57
commit
683efe95b3
@ -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
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user