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

@ -451,7 +451,7 @@ ${navigator.userAgent}
pane.style.height = `${window.innerHeight - 40}px`;
} else {
if ( window.innerWidth < this.app.breakpoint ){
this.app.divideAvailableSpace();
this.app.assignAvailableHeight();
}
}
}

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"));
}
}

View file

@ -658,7 +658,7 @@ class RecipeWaiter {
* Note: It seems a little overkill, but with the current tightly coupled code this is
* a reliable way to make sure the 'selected' operations are always in sync with
* the recipe list ( I think this is preferable to complicating a lot of existing
* code ), I'd recommend to refactor this at one point, but that will mean a huge code
* code ), I'd recommend to refactor this at one point, but that would mean a huge code
* overhaul for another time / issue.
*/
updateSelectedOperations(){