diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-08-10 02:17:33 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-08-11 09:57:50 +0300 |
commit | e66ea9c5dec8da70b75e831798b13bc5a98eab44 (patch) | |
tree | 7e21c3bd42271cbfe8460463eaea11cca3bdf9f8 | |
parent | f2c4782dabfdc672bb507c3224fc7b46359119c4 (diff) |
Fix share option being displayed erroneously
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r-- | js/files.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/files.js b/js/files.js index d810552..314b5da 100644 --- a/js/files.js +++ b/js/files.js @@ -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(); }); |