mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
Pass attribute key to attribute editors (#2818)
Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
parent
9cb86c65b8
commit
9cccca0a45
@ -74,6 +74,7 @@
|
||||
justify={'left'}
|
||||
type={attribute?.type}
|
||||
{maxWidth}
|
||||
{attributeKey}
|
||||
value={getAttribute(client, object, { key: attributeKey, attr: attribute })}
|
||||
space={object.space}
|
||||
{onChange}
|
||||
@ -87,6 +88,7 @@
|
||||
this={instance}
|
||||
type={attribute?.type}
|
||||
{maxWidth}
|
||||
{attributeKey}
|
||||
value={getAttribute(client, object, { key: attributeKey, attr: attribute })}
|
||||
readonly={isReadonly}
|
||||
space={object.space}
|
||||
|
@ -62,6 +62,7 @@
|
||||
placeholder={attribute?.label}
|
||||
type={attribute?.type}
|
||||
{maxWidth}
|
||||
{attributeKey}
|
||||
value={getAttribute(client, object, { key: attributeKey, attr: attribute })}
|
||||
{onChange}
|
||||
{focus}
|
||||
|
@ -67,6 +67,7 @@
|
||||
justify={'left'}
|
||||
type={attribute?.type}
|
||||
{maxWidth}
|
||||
{attributeKey}
|
||||
value={getAttribute(client, object, { key: attributeKey, attr: attribute })}
|
||||
space={object.space}
|
||||
{onChange}
|
||||
|
Loading…
Reference in New Issue
Block a user