fixed bug on replace popup
This commit is contained in:
@@ -381,11 +381,11 @@ var custom_workflows = (function () {
|
||||
async function handleDocumentDropEvent(event) {
|
||||
//prevent default action
|
||||
event.preventDefault();
|
||||
const sb_workflow_replace = JSON.parse(await getConfiguration('sb_workflow_replace', true)) || true;
|
||||
const sb_workflow_replace = localStorage.getItem('sb_workflow_replace') || "true";
|
||||
if (draggedElement.id === 'sidebarWorkflowItem' && event.target.id === 'graph-canvas') {
|
||||
|
||||
if (draggedElement.dataset.data === 'NaN') { return; }
|
||||
if (sb_workflow_replace) {
|
||||
if (sb_workflow_replace=="true") {
|
||||
const confirmation = confirm("This will replace the current workflow. Are you sure?");
|
||||
if (!confirmation) { return; }
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-n-sidebar"
|
||||
description = "A simple sidebar for ComfyUI."
|
||||
version = "1.2.0"
|
||||
version = "1.2.1"
|
||||
license = "LICENSE"
|
||||
|
||||
[project.urls]
|
||||
|
||||
Reference in New Issue
Block a user