Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_rightclick.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-08-10 02:17:33 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-08-11 09:57:50 +0300
commite66ea9c5dec8da70b75e831798b13bc5a98eab44 (patch)
tree7e21c3bd42271cbfe8460463eaea11cca3bdf9f8
parentf2c4782dabfdc672bb507c3224fc7b46359119c4 (diff)
Fix share option being displayed erroneously
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--js/files.js2
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();
});