-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Board: fix attribute views for tags #2046
Conversation
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: Anna No <anna.no@xored.com>
const typeClass = hierarchy.getClass(presenterClass.attrClass) | ||
const editorMixin = hierarchy.as(typeClass, view.mixin.AttributeEditor) | ||
editor = getResource(editorMixin.editor).catch((cause) => { | ||
console.error(`failed to find editor for ${_class} ${attribute} ${presenterClass.attrClass} cause: ${cause}`) | ||
}) | ||
} | ||
if (presenterClass?.attrClass !== undefined && presenterClass?.category === 'array') { | ||
if (presenterClass.category === 'collection' && allowedCollections.findIndex(attr => attr === attribute?.name) >= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't the collections already filtered by the ClassAttributeBar
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
if (presenterClass?.attrClass === undefined) { | ||
return | ||
} | ||
if (presenterClass.category === 'attribute') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe extract mixin
type into a variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: Anna No anna.no@xored.com
Contribution checklist
Brief description
Checklist
Related issues
A list of closed updated issues