Skip to content

Commit

Permalink
exporting the icon set now correctly exports changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderZellober committed Sep 15, 2023
1 parent b2a28f2 commit cf65b25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app-v2.0.0-beta/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3288,7 +3288,7 @@ function activityUpdateHandler(commandStack, eventBus) {
}
// reverts the automatic changed done by the automatic number-generation at editing
function revertAutomaticNumberGenerationChange(iDWithNumber, eventBus) {
let activities = canvasElementRegistry.getActivitesFromActors();
let activities = canvasElementRegistry?.getActivitesFromActors();
for (let i = activities.length - 1; i >= 0; i--) {
for (let j = iDWithNumber.length - 1; j >= 0; j--) {
if (iDWithNumber[j].id.includes(activities[i].businessObject.id)) {
Expand Down Expand Up @@ -7600,19 +7600,25 @@ class DomainCustomizationService {
this.updateIcon(true, false, actor);
this.selectActor(actor);
this.deselectWorkobject(actor);
const icon = this.iconDictionaryService.getFullDictionary().get(actor);
this.iconDictionaryService.getActorsDictionary().add(icon, actor);
} else {
this.deselectActor(actor);
this.updateIcon(false, false, actor);
this.iconDictionaryService.getActorsDictionary().delete(actor);
}
}
setAsWorkobject(isWorkobject, workobject) {
if (isWorkobject) {
this.updateIcon(false, true, workobject);
this.selectWorkObject(workobject);
this.deselectActor(workobject);
const icon = this.iconDictionaryService.getFullDictionary().get(workobject);
this.iconDictionaryService.getWorkObjectsDictionary().add(icon, workobject);
} else {
this.deselectWorkobject(workobject);
this.updateIcon(false, false, workobject);
this.iconDictionaryService.getWorkObjectsDictionary().delete(workobject);
}
}
selectActor(actor) {
Expand Down
2 changes: 1 addition & 1 deletion app-v2.0.0-beta/main.js.map

Large diffs are not rendered by default.

0 comments on commit cf65b25

Please sign in to comment.