mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-21 15:59:15 +00:00
TSK-1252: Dispatch update event for attribute bar (#3017)
Signed-off-by: Anton Brechka <anton.brechka@ezthera.com>
This commit is contained in:
parent
f3ff78843d
commit
c917f9c59a
@ -42,9 +42,11 @@
|
|||||||
|
|
||||||
function onChange (value: any) {
|
function onChange (value: any) {
|
||||||
const doc = object as Doc
|
const doc = object as Doc
|
||||||
|
|
||||||
|
dispatch('update', { key, value })
|
||||||
|
|
||||||
if (draft) {
|
if (draft) {
|
||||||
;(doc as any)[attributeKey] = value
|
;(doc as any)[attributeKey] = value
|
||||||
dispatch('update', { key, value })
|
|
||||||
} else {
|
} else {
|
||||||
updateAttribute(client, doc, doc._class, { key: attributeKey, attr: attribute }, value)
|
updateAttribute(client, doc, doc._class, { key: attributeKey, attr: attribute }, value)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user