Skip to content

Commit

Permalink
Deploy latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
egon-development committed Aug 16, 2024
1 parent 539f1d5 commit aa4f49f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions app-latest-build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7977,14 +7977,11 @@ class IconSetCustomizationService {
if (storedIconSetConfiguration) {
this.importConfiguration(storedIconSetConfiguration, false);
}
const importedConfiguration = iconSetChangedService.getConfiguration();
if (importedConfiguration) {
this.importConfiguration(importedConfiguration, false);
}
}
importConfiguration(customConfig, saveIconSet = true) {
const actorKeys = customConfig.actors.keysArray();
const workObjectKeys = customConfig.workObjects.keysArray();
const usedIcons = this.elementRegistryService.getUsedIcons();
this.changeName(customConfig.name);
actorKeys.forEach(iconName => {
if (!this.allIconListItems.has(iconName)) {
Expand All @@ -7995,6 +7992,11 @@ class IconSetCustomizationService {
this.selectActor(iconName);
}
});
this.selectedActors$.value.forEach(iconName => {
if (!actorKeys.includes(iconName) && !usedIcons.actors.includes(iconName)) {
this.deselectActor(iconName);
}
});
workObjectKeys.forEach(iconName => {
if (!this.allIconListItems.has(iconName)) {
this.addIconToAllIconList(iconName);
Expand All @@ -8004,8 +8006,13 @@ class IconSetCustomizationService {
this.selectWorkObject(iconName);
}
});
this.selectedWorkobjects$.value.forEach(iconName => {
if (!workObjectKeys.includes(iconName) && !usedIcons.workobjects.includes(iconName)) {
this.deselectWorkobject(iconName);
}
});
if (saveIconSet) {
this.saveIconSet(this.elementRegistryService.getUsedIcons(), true);
this.saveIconSet(usedIcons, true);
}
}
/** Getter & Setter **/
Expand Down
2 changes: 1 addition & 1 deletion app-latest-build/main.js.map

Large diffs are not rendered by default.

0 comments on commit aa4f49f

Please sign in to comment.