mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-07 18:27:44 +02:00
Cards fixes (#8278)
This commit is contained in:
@@ -138,6 +138,7 @@
|
||||
nameA,
|
||||
nameB
|
||||
})
|
||||
dispatch('create')
|
||||
dispatch('close')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,14 +102,14 @@
|
||||
if (classBRef === undefined || classARef === undefined) {
|
||||
return
|
||||
}
|
||||
await client.createDoc(core.class.Association, core.space.Model, {
|
||||
const _id = await client.createDoc(core.class.Association, core.space.Model, {
|
||||
classA: classARef,
|
||||
classB: classBRef,
|
||||
type: mode,
|
||||
nameA,
|
||||
nameB
|
||||
})
|
||||
dispatch('close')
|
||||
dispatch('close', _id)
|
||||
}
|
||||
|
||||
const items: DropdownIntlItem[] = [
|
||||
|
||||
@@ -153,7 +153,8 @@
|
||||
{exclude}
|
||||
{_classes}
|
||||
association={selected}
|
||||
on:close={() => {
|
||||
on:create
|
||||
on:close={(res) => {
|
||||
selected = undefined
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user