Fix drag n drop for locked tasks [SCI-7123

This commit is contained in:
Anton 2022-08-23 14:20:24 +02:00
parent c2242b6cc8
commit d8bcdb09e4
2 changed files with 3 additions and 1 deletions

View file

@ -22,6 +22,8 @@ export default {
let filesUploadedCntr = 0;
this.showFileModal = false;
if (!this.step.attributes.urls.upload_attachment_url) return false;
return new Promise((resolve, reject) => {
$(files).each((_, file) => {
const fileObject = {

View file

@ -254,7 +254,7 @@
},
methods: {
dragEnter(e) {
if (this.showFileModal) return;
if (this.showFileModal || !urls.upload_attachment_url) return;
// Detect if dragged element is a file
// https://stackoverflow.com/a/8494918