mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
Show only attributes of selected class (#1904)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
f8cf26f640
commit
15d3a2baab
@ -41,7 +41,8 @@
|
||||
$: attributes = getCustomAttributes(_class)
|
||||
|
||||
function getCustomAttributes (_class: Ref<Class<Doc>>): AnyAttribute[] {
|
||||
const attributes = Array.from(hierarchy.getAllAttributes(_class, core.class.AttachedDoc).values())
|
||||
const cl = hierarchy.getClass(_class)
|
||||
const attributes = Array.from(hierarchy.getAllAttributes(_class, cl.extends).values())
|
||||
const filtred = attributes.filter((p) => !p.hidden)
|
||||
return filtred
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user