diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2021-08-11 03:13:00 +0300 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2021-08-11 21:17:39 +0300 |
commit | 7d29f4afeb990792ddc34fdc42b4e71c16d19b44 (patch) | |
tree | a0753d76c758004ba76e4f5f79932705bafbb261 | |
parent | e66ea9c5dec8da70b75e831798b13bc5a98eab44 (diff) |
Minor refactor
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
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 314b5da..b212288 100644 --- a/js/files.js +++ b/js/files.js @@ -82,7 +82,7 @@ var share = currentFile.find('.filename .fileactions .action-share'); if (share.length !== 0) { - addNewOption('Share', 'shared', t(appName, 'Share ' + (currentFile.attr('data-type') === 'dir' ? 'folder' : 'file')), function () { + addNewOption('Share', 'shared', (currentFile.attr('data-type') === 'dir' ? t(appName, 'Share folder') : t(appName, 'Share file')), function () { share.click(); }); } |