aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-09-20 19:43:34 +0000
committerChristopher Ng <chrng8@gmail.com>2022-09-20 19:43:34 +0000
commitd415c656f6b1815ab6a7229bc5268abd5ea97a57 (patch)
tree1e078d6ba0c60bae4a970edd13e711360a0277e9 /apps/files/js/filelist.js
parentea08fabca3c10370d393ab10480fd82c36e1eaac (diff)
downloadnextcloud-server-d415c656f6b1815ab6a7229bc5268abd5ea97a57.tar.gz
nextcloud-server-d415c656f6b1815ab6a7229bc5268abd5ea97a57.zip
Add edit locally file action
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index ee596dd417e..fff704b9283 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2807,6 +2807,15 @@
});
},
+ openLocalClient: function(path) {
+ var scheme = 'nc://';
+ var command = 'open';
+ var uid = OC.getCurrentUser().uid;
+ var url = scheme + command + '/' + uid + '@' + window.location.host + (window.location.port ? `:${window.location.port}` : '') + OC.encodePath(path);
+
+ window.location.href = url;
+ },
+
/**
* Updates the given row with the given file info
*