mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-18 02:41:14 +08:00
Fix drag n drop for locked tasks [SCI-7123
This commit is contained in:
parent
c2242b6cc8
commit
d8bcdb09e4
2 changed files with 3 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue