mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
Fixed creation of class attribute (#4350)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
44a341eae3
commit
ebe5fcdfbe
@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
export function createAttribute (ev: MouseEvent): void {
|
export function createAttribute (ev: MouseEvent): void {
|
||||||
showPopup(TypesPopup, { _class }, getEventPositionElement(ev), (_id) => {
|
showPopup(TypesPopup, { _class }, getEventPositionElement(ev), (_id) => {
|
||||||
if (_id !== undefined) $settingsStore = { component: CreateAttribute, props: { _id, _class } }
|
if (_id !== undefined) $settingsStore = { component: CreateAttribute, props: { selectedType: _id, _class } }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const items = getTypes()
|
const items = getTypes()
|
||||||
let selectedType: Ref<Class<Type<PropertyType>>>
|
export let selectedType: Ref<Class<Type<PropertyType>>> | undefined = undefined
|
||||||
|
|
||||||
$: selectedType && selectType(selectedType)
|
$: selectedType && selectType(selectedType)
|
||||||
|
|
||||||
|
@ -210,14 +210,14 @@
|
|||||||
<!-- afterLabel={plugin.string.Published} -->
|
<!-- afterLabel={plugin.string.Published} -->
|
||||||
<!-- <span slot="afterLabel">{dateStr}</span> -->
|
<!-- <span slot="afterLabel">{dateStr}</span> -->
|
||||||
</Breadcrumbs>
|
</Breadcrumbs>
|
||||||
<svelte:fragment slot="actions">
|
<!-- <svelte:fragment slot="actions">
|
||||||
<!-- <div class="hulyHeader-buttonsGroup__label font-regular-12">
|
<div class="hulyHeader-buttonsGroup__label font-regular-12">
|
||||||
<Label label={plugin.string.LastSave} />
|
<Label label={plugin.string.LastSave} />
|
||||||
<span>{dateStr}</span>
|
<span>{dateStr}</span>
|
||||||
</div> -->
|
</div>
|
||||||
<ModernButton kind={'secondary'} label={ui.string.SaveDraft} size={'small'} />
|
<ModernButton kind={'secondary'} label={ui.string.SaveDraft} size={'small'} />
|
||||||
<ModernButton kind={'primary'} icon={IconSend} label={ui.string.Publish} size={'small'} />
|
<ModernButton kind={'primary'} icon={IconSend} label={ui.string.Publish} size={'small'} />
|
||||||
</svelte:fragment>
|
</svelte:fragment> -->
|
||||||
</Header>
|
</Header>
|
||||||
<div class="hulyComponent-content__container columns">
|
<div class="hulyComponent-content__container columns">
|
||||||
{#if selectedTaskTypeId === undefined}
|
{#if selectedTaskTypeId === undefined}
|
||||||
|
Loading…
Reference in New Issue
Block a user