diff --git a/src/web/components/c-operation-list.mjs b/src/web/components/c-operation-list.mjs index b6c1f7ca..75245ca5 100644 --- a/src/web/components/c-operation-list.mjs +++ b/src/web/components/c-operation-list.mjs @@ -14,16 +14,19 @@ export class COperationList extends HTMLElement { app, opNames, includeStarIcon, + isSortable = false, + isCloneable = true, icon, - isSortable = false + ) { super(); this.app = app; this.opNames = opNames; this.includeStarIcon = includeStarIcon; - this.icon = icon; this.isSortable = isSortable; + this.isCloneable = isCloneable; + this.icon = icon; } /** @@ -66,10 +69,17 @@ export class COperationList extends HTMLElement { } }.bind(this), }); + } else if (!this.app.isMobileView() && this.isCloneable) { + const cloneableList = Sortable.create(ul, { + group: { + name: "recipe", + pull: "clone", + }, + draggable: "c-operation-li", + sort: false + }) } - ul.dispatchEvent(this.app.manager.oplistcreate); - this.append(ul); } }