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

@ -250,8 +250,6 @@ class RecipeWaiter {
item.dispatchEvent(this.manager.operationadd);
document.dispatchEvent(this.app.manager.statechange);
this.manager.ops.updateListItemsClasses("#rec-list", "selected");
return item;
}
@ -269,8 +267,6 @@ class RecipeWaiter {
recList.dispatchEvent(this.manager.operationremove);
window.dispatchEvent(this.app.manager.statechange);
this.app.manager.ops.updateListItemsClasses("#rec-list", "selected");
}