Skip to content
Snippets Groups Projects
Commit bda34beb authored by florian's avatar florian
Browse files

DOC: Adapt in-code comments

parent 3b022db6
No related branches found
No related tags found
2 merge requests!89Release v0.10.0,!88ENH: Allow sorting of properties
Pipeline #31439 passed
...@@ -66,9 +66,11 @@ var prop_display = new function ($, edit_mode, getEntityName, getEntityRole, get ...@@ -66,9 +66,11 @@ var prop_display = new function ($, edit_mode, getEntityName, getEntityRole, get
for (let typeName of Object.keys(conf)) { for (let typeName of Object.keys(conf)) {
let typeConf = conf[typeName]; let typeConf = conf[typeName];
let allNames = allTypes.typesWithChildren[typeName]; let allNames = allTypes.typesWithChildren[typeName];
// only hide something if there is a match in at least one parent type // only change the display something if there is a match in
// at least one parent type
if (parents.some(par => allNames.includes(par)) || if (parents.some(par => allNames.includes(par)) ||
(getEntityRole(ent) == "RecordType" && allNames.includes(getEntityName(ent)))) { (getEntityRole(ent) == "RecordType" && allNames.includes(getEntityName(ent)))) {
// first sort the properties
this._sortProperties(ent, properties, typeConf); this._sortProperties(ent, properties, typeConf);
properties.forEach((prop, index) => { properties.forEach((prop, index) => {
if (this._hide_property(getPropertyName(prop), userName, userRoles, typeConf)) { if (this._hide_property(getPropertyName(prop), userName, userRoles, typeConf)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment