mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 03:59:50 +03:00
Tags: Fix collection editor (#2080)
* Tags: Revert collection editor changes Signed-off-by: Anna No <anna.no@xored.com> * Tags: Revert collection editor changes Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
parent
1562adae06
commit
5a28f6294f
@ -88,6 +88,10 @@ export function createModel (builder: Builder): void {
|
|||||||
builder.createModel(TTagElement, TTagReference, TTagCategory)
|
builder.createModel(TTagElement, TTagReference, TTagCategory)
|
||||||
|
|
||||||
builder.mixin(tags.class.TagReference, core.class.Class, view.mixin.CollectionEditor, {
|
builder.mixin(tags.class.TagReference, core.class.Class, view.mixin.CollectionEditor, {
|
||||||
|
editor: tags.component.Tags
|
||||||
|
})
|
||||||
|
|
||||||
|
builder.mixin(tags.class.TagReference, core.class.Class, view.mixin.AttributeEditor, {
|
||||||
editor: tags.component.TagsAttributeEditor
|
editor: tags.component.TagsAttributeEditor
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -45,13 +45,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const category = presenterClass.category
|
const category = presenterClass.category
|
||||||
let mixinRef = undefined
|
let mixinRef = view.mixin.AttributeEditor
|
||||||
if (category === 'attribute') {
|
|
||||||
mixinRef = view.mixin.AttributeEditor
|
|
||||||
}
|
|
||||||
if (category === 'collection') {
|
|
||||||
mixinRef = view.mixin.CollectionEditor
|
|
||||||
}
|
|
||||||
if (category === 'array') {
|
if (category === 'array') {
|
||||||
mixinRef = view.mixin.ArrayEditor
|
mixinRef = view.mixin.ArrayEditor
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user