mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 18:16:53 -04:00
rename c-ingredient-li to c-recipe-li, update TODOs
This commit is contained in:
parent
21eb177527
commit
36224388fb
6 changed files with 15 additions and 14 deletions
|
@ -497,7 +497,7 @@ ${navigator.userAgent}
|
|||
*/
|
||||
onMaximisedRecipeClick() {
|
||||
// if #recipe is maximised & rec-list is empty on mobile UI
|
||||
if (this.app.isMobileView() && document.querySelector("#recipe.maximised-pane") && document.querySelectorAll("#rec-list > c-ingredient-li").length === 0) {
|
||||
if (this.app.isMobileView() && document.querySelector("#recipe.maximised-pane") && document.querySelectorAll("#rec-list > c-recipe-li").length === 0) {
|
||||
// close max pane and display the expanded #operations-dropdown
|
||||
this.setPaneMaximised("recipe", false);
|
||||
this.manager.ops.openOpsDropdown();
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import Sortable from "sortablejs";
|
||||
import Utils from "../../core/Utils.mjs";
|
||||
import {escapeControlChars} from "../utils/editorUtils.mjs";
|
||||
import {CIngredientLi} from "../components/c-ingredient-li.mjs";
|
||||
import {CRecipeLi} from "../components/c-recipe-li.mjs";
|
||||
|
||||
|
||||
/**
|
||||
|
@ -51,7 +51,7 @@ class RecipeWaiter {
|
|||
Sortable.create(recList, {
|
||||
group: "recipe",
|
||||
sort: true,
|
||||
draggable: "c-ingredient-li",
|
||||
draggable: "c-recipe-li",
|
||||
swapThreshold: swapThreshold,
|
||||
animation: animation,
|
||||
delay: delay,
|
||||
|
@ -314,7 +314,7 @@ class RecipeWaiter {
|
|||
* @param {string} name - The operation stub element from the operations pane
|
||||
*/
|
||||
buildRecipeOperation(name) {
|
||||
const op = new CIngredientLi(this.app, name, this.app.operations[name].args);
|
||||
const op = new CRecipeLi(this.app, name, this.app.operations[name].args);
|
||||
|
||||
if (this.app.operations[name].flowControl) {
|
||||
op.classList.add("flow-control-op");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue