-
Notifications
You must be signed in to change notification settings - Fork 13.1k
[FIX] Drag and drop disabled when file upload is disabled #16049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app/ui/client/views/app/room.js
Outdated
|
|
||
| e.stopPropagation(); | ||
|
|
||
| if (!userCanDrop() || !settings.get('FileUpload_Enabled')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here we can add the !settings.get('FileUpload_Enabled') to the userCanDrop instead of testing both
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this check can be done earlier in the event, maybe right after removing the over class from the element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here: userCanDrop(this._id)
app/ui/client/views/app/room.js
Outdated
| }, | ||
|
|
||
| dragAndDropLabel() { | ||
| if (!userCanDrop) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be userCanDrop(this._id)
app/ui/client/views/app/room.js
Outdated
|
|
||
| e.stopPropagation(); | ||
|
|
||
| if (!userCanDrop() || !settings.get('FileUpload_Enabled')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here: userCanDrop(this._id)
MartinSchoeler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now
…default-favorite-channels * 'develop' of github.com:RocketChat/Rocket.Chat: (31 commits) fix space update on mongo, node and caddy [NEW] Enforce plain text emails converting from HTML when no text version supplied (#16063) [IMPROVE] Status Text form validation (#16121) [FIX] auto translate cache (#15768) [FIX] Save new password without confirmation (#16060) Disable PR Docker image build (#16141) [IMPROVE] Set the color of the cancel button on modals to #bdbebf for enhanced visibiity (#15913) [FIX] Break message-attachment text to the next line (#16039) [IMPROVE] Remove NRR (#16071) Add Cloud Info to translation dictionary (#16122) [FIX] Resolving console errors Administrations (#16139) [FIX] SafePorts: Ports 80, 8080 & 443 linked to respective protocols (#16108) [FIX] Drag and drop disabled when file upload is disabled (#16049) [FIX] Video message sent to wrong room (#16113) [FIX] "User not found" for direct messages (#16047) [BREAK] Removed room counter from sidebar (#16036) [FIX] Embedded style when using 'go' command (#16051) [NEW] Setting Top navbar in embedded mode (#16064) [FIX] Thread message icon overlapping text (#16083) ...
Closes #7816
Drag and Drop now is disabled when the File Upload is disabled.