mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 18:16:53 -04:00
fix 'clear all
This commit is contained in:
parent
4947f809a9
commit
c110e5a59f
4 changed files with 8 additions and 4 deletions
|
@ -280,6 +280,7 @@ class OperationsWaiter {
|
|||
* @param {string} className - the className to update
|
||||
*/
|
||||
updateListItemsClasses(srcListSelector, className) {
|
||||
console.log("li update");
|
||||
const listItems = document.querySelectorAll(`${srcListSelector} li`);
|
||||
const ops = document.querySelectorAll("c-operation-li > li.operation");
|
||||
|
||||
|
|
|
@ -243,10 +243,6 @@ class RecipeWaiter {
|
|||
buildRecipeOperation(name) {
|
||||
const op = new CRecipeLi(this.app, name, this.app.operations[name].args);
|
||||
|
||||
if (this.app.operations[name].flowControl) {
|
||||
op.classList.add("flow-control-op");
|
||||
}
|
||||
|
||||
// Disable auto-bake if this is a manual op
|
||||
if (op.manualBake && this.app.autoBake_) {
|
||||
this.manager.controls.setAutoBake(false);
|
||||
|
@ -289,6 +285,8 @@ class RecipeWaiter {
|
|||
recList.removeChild(recList.firstChild);
|
||||
}
|
||||
recList.dispatchEvent(this.manager.operationremove);
|
||||
window.dispatchEvent(this.app.manager.statechange);
|
||||
this.app.manager.ops.updateListItemsClasses("#rec-list", "selected");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue