This commit is contained in:
Robin Scholtes 2023-05-09 22:14:36 +12:00
parent f1257ea356
commit 5362f9fda4
9 changed files with 48 additions and 23 deletions

View file

@ -325,7 +325,7 @@ class OperationsWaiter {
* Open operations dropdown
*/
openOperationsDropdown(){
// 'close' ( dropdown ) icon in Operations component mobile UI
// the 'close' ( dropdown ) icon in Operations component mobile UI
const closeOperationsDropdown = document.getElementById("close-operations-dropdown");
const categories = document.getElementById("categories");
@ -373,7 +373,15 @@ class OperationsWaiter {
*/
resetFavouritesClick() {
this.app.resetFavourites();
this.manager.recipe.updateSelectedOperations();
}
/**
* Add a favourite op, for mobile UI only
*
* @param {Event} e
*/
onIconFavouriteClick(e){
this.app.addFavourite(e.target.getAttribute("title"));
}
}