mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +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.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
|
||||
})
|
||||
|
||||
|
@ -45,13 +45,7 @@
|
||||
return
|
||||
}
|
||||
const category = presenterClass.category
|
||||
let mixinRef = undefined
|
||||
if (category === 'attribute') {
|
||||
mixinRef = view.mixin.AttributeEditor
|
||||
}
|
||||
if (category === 'collection') {
|
||||
mixinRef = view.mixin.CollectionEditor
|
||||
}
|
||||
let mixinRef = view.mixin.AttributeEditor
|
||||
if (category === 'array') {
|
||||
mixinRef = view.mixin.ArrayEditor
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user