Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix share option being displayed erroneously
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Aug 9, 2021
commit 7bc7b7bbc4abeb040ef3220a3ddbf69f749c71e0
2 changes: 1 addition & 1 deletion js/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

var share = currentFile.find('.filename .fileactions .action-share');

if (share.length === 0) {
if (share.length !== 0) {
addNewOption('Share', 'shared', t(appName, 'Share ' + (currentFile.attr('data-type') === 'dir' ? 'folder' : 'file')), function () {
share.click();
});
Expand Down