mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-06 07:46:32 +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.
|
// 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 core, { TAttachedDoc, TDoc } from '@hcengineering/model-core'
|
||||||
import bitrix from './plugin'
|
import bitrix from './plugin'
|
||||||
|
|
||||||
@ -36,8 +48,10 @@ const DOMAIN_BITRIX = 'bitrix' as Domain
|
|||||||
@UX(getEmbeddedLabel('Bitrix'))
|
@UX(getEmbeddedLabel('Bitrix'))
|
||||||
export class TBitrixSyncDoc extends TDoc implements BitrixSyncDoc {
|
export class TBitrixSyncDoc extends TDoc implements BitrixSyncDoc {
|
||||||
type!: string
|
type!: string
|
||||||
|
|
||||||
@Prop(TypeString(), getEmbeddedLabel('BitrixId'))
|
@Prop(TypeString(), getEmbeddedLabel('BitrixId'))
|
||||||
@ReadOnly()
|
@ReadOnly()
|
||||||
|
@Hidden()
|
||||||
bitrixId!: string
|
bitrixId!: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,15 +197,18 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#each mixins as mixin}
|
{#each mixins as mixin}
|
||||||
<div class="divider" />
|
{@const mixinKeys = getMixinKeys(mixin._id)}
|
||||||
{#each getMixinKeys(mixin._id) as key (typeof key === 'string' ? key : key.key)}
|
{#if mixinKeys.length}
|
||||||
<AttributeBarEditor
|
<div class="divider" />
|
||||||
{key}
|
{#each mixinKeys as key (typeof key === 'string' ? key : key.key)}
|
||||||
_class={mixin._id}
|
<AttributeBarEditor
|
||||||
object={hierarchy.as(issue, mixin._id)}
|
{key}
|
||||||
showHeader={true}
|
_class={mixin._id}
|
||||||
size={'medium'}
|
object={hierarchy.as(issue, mixin._id)}
|
||||||
/>
|
showHeader={true}
|
||||||
{/each}
|
size={'medium'}
|
||||||
|
/>
|
||||||
|
{/each}
|
||||||
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,47 +53,47 @@
|
|||||||
$: collapsed = getCollapsed(_class, nonEmpty)
|
$: collapsed = getCollapsed(_class, nonEmpty)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
{#if keys.length}
|
||||||
{#if showHeader}
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
<div
|
{#if showHeader}
|
||||||
class="attrbar-header"
|
<div
|
||||||
class:collapsed
|
class="attrbar-header"
|
||||||
on:click={() => {
|
class:collapsed
|
||||||
collapsed = !collapsed
|
on:click={() => {
|
||||||
}}
|
collapsed = !collapsed
|
||||||
>
|
}}
|
||||||
<div class="flex-row-center">
|
>
|
||||||
<span class="overflow-label">
|
<div class="flex-row-center">
|
||||||
<Label {label} />
|
<span class="overflow-label">
|
||||||
</span>
|
<Label {label} />
|
||||||
<div class="icon-arrow">
|
</span>
|
||||||
<svg fill="var(--theme-dark-color)" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg">
|
<div class="icon-arrow">
|
||||||
<path d="M0,0L6,3L0,6Z" />
|
<svg fill="var(--theme-dark-color)" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg">
|
||||||
</svg>
|
<path d="M0,0L6,3L0,6Z" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="tool">
|
||||||
|
<Button
|
||||||
|
icon={setting.icon.Setting}
|
||||||
|
kind={'link'}
|
||||||
|
size={'medium'}
|
||||||
|
showTooltip={{ label: setting.string.ClassSetting }}
|
||||||
|
on:click={(ev) => {
|
||||||
|
ev.stopPropagation()
|
||||||
|
const loc = getCurrentResolvedLocation()
|
||||||
|
loc.path[2] = settingId
|
||||||
|
loc.path[3] = 'setting'
|
||||||
|
loc.path[4] = 'classes'
|
||||||
|
loc.path.length = 5
|
||||||
|
loc.query = { _class }
|
||||||
|
loc.fragment = undefined
|
||||||
|
navigate(loc)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tool">
|
{/if}
|
||||||
<Button
|
|
||||||
icon={setting.icon.Setting}
|
|
||||||
kind={'link'}
|
|
||||||
size={'medium'}
|
|
||||||
showTooltip={{ label: setting.string.ClassSetting }}
|
|
||||||
on:click={(ev) => {
|
|
||||||
ev.stopPropagation()
|
|
||||||
const loc = getCurrentResolvedLocation()
|
|
||||||
loc.path[2] = settingId
|
|
||||||
loc.path[3] = 'setting'
|
|
||||||
loc.path[4] = 'classes'
|
|
||||||
loc.path.length = 5
|
|
||||||
loc.query = { _class }
|
|
||||||
loc.fragment = undefined
|
|
||||||
navigate(loc)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
{#if keys.length}
|
|
||||||
<div class="collapsed-container" class:collapsed>
|
<div class="collapsed-container" class:collapsed>
|
||||||
<AttributesBar {_class} {object} {keys} {readonly} {draft} on:update />
|
<AttributesBar {_class} {object} {keys} {readonly} {draft} on:update />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user