@@ -155,7 +155,10 @@ class="flex gap-4"
@{{ element.name ? element.name : 'New Added' }}
-
+
@@ -165,7 +168,7 @@ class="flex gap-4"
@@ -225,7 +228,8 @@ class="flex gap-4"
@@ -368,6 +372,14 @@ class="secondary-button"
const relatedElement = event.relatedContext.element;
+ return this.isDragable(draggedElement) && this.isDragable(relatedElement);
+ },
+
+ isDragable (stage) {
+ if (stage.code == 'new' || stage.code == 'won' || stage.code == 'lost') {
+ return false;
+ }
+
return true;
},
},