ability to remove attribute with mouse + other tweaks

This commit is contained in:
zadam
2020-08-13 23:23:57 +02:00
parent 47a9516ada
commit f6f9f0d2c0
7 changed files with 124 additions and 85 deletions

View File

@@ -410,7 +410,9 @@ export default class AttributeEditorWidget extends TabAwareWidget {
const $attributesContainer = $("<div>");
for (const attribute of ownedAttributes) {
attributeRenderer.renderAttribute(attribute, $attributesContainer, true);
if (!attribute.isDeleted) {
attributeRenderer.renderAttribute(attribute, $attributesContainer, true);
}
}
this.textEditor.setData($attributesContainer.html());