mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-09 19:27:44 +02:00
Fixed creation of class attribute (#4350)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
|
||||
export function createAttribute (ev: MouseEvent): void {
|
||||
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()
|
||||
let selectedType: Ref<Class<Type<PropertyType>>>
|
||||
export let selectedType: Ref<Class<Type<PropertyType>>> | undefined = undefined
|
||||
|
||||
$: selectedType && selectType(selectedType)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user