remove listItemUpdate related classes into c-operation-list and simplify code, as duplicates in the operation lists are now no longer an issue in the context of this. Add a custom events to dispatch on change of favourites

This commit is contained in:
Robin Scholtes 2023-08-15 15:19:11 +12:00
parent 6a11d14794
commit 4dc4645def
6 changed files with 59 additions and 85 deletions

View file

@ -434,9 +434,8 @@ class App {
this.buildFavouritesCategory(isExpanded);
// update all op-lists to reflect the current recipe list ( selected ops ) and favourite category list ( favourite ops )
this.manager.ops.updateListItemsClasses("#rec-list", "selected");
this.manager.ops.updateListItemsClasses("#catFavourites > c-operation-list > ul.op-list", "favourite");
window.dispatchEvent(this.manager.favouritesupdate);
this.manager.recipe.initDragAndDrop();
}