move operation removal from recipe list to c-recipe-li and remove all associated old code

This commit is contained in:
Robin Scholtes 2023-08-15 11:28:06 +12:00
parent 36224388fb
commit b7e0518cc7
4 changed files with 32 additions and 53 deletions

View file

@ -208,32 +208,6 @@ class RecipeWaiter {
}
/**
* Handler for operation doubleclick events.
* Removes the operation from the recipe and auto bakes.
*
* @fires Manager#statechange
* @param {Event} e
*/
operationDblclick(e) {
e.target.remove();
this.opRemove(e);
}
/**
* Handler for operation child doubleclick events.
* Removes the operation from the recipe.
*
* @fires Manager#statechange
* @param {Event} e
*/
operationChildDblclick(e) {
e.target.parentNode.remove();
this.opRemove(e);
}
/**
* Generates a configuration object to represent the current recipe.
*
@ -416,21 +390,6 @@ class RecipeWaiter {
}
/**
* Handler for operationremove events.
* Updates 'selected' classes in #operations
*
* @listens Manager#operationremove
* @fires Manager#statechange
* @param {Event} e
*/
opRemove(e) {
log.debug("Operation removed from recipe");
window.dispatchEvent(this.manager.statechange);
this.manager.ops.updateListItemsClasses("#rec-list", "selected");
}
/**
* Handler for text argument dragover events.
* Gives the user a visual cue to show that items can be dropped here.