aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-08-02 19:15:00 -0700
committerChristopher Ng <chrng8@gmail.com>2023-08-09 10:41:17 -0700
commitd6bf9e3c10846d403468e70b39ef34af61458094 (patch)
treee6eaae6391c06b504036b14eabb0b3fe8821830f /apps/files/js
parente97206bb0605f66842d51b7cb707e38c35fa3f61 (diff)
downloadnextcloud-server-d6bf9e3c10846d403468e70b39ef34af61458094.tar.gz
nextcloud-server-d6bf9e3c10846d403468e70b39ef34af61458094.zip
feat(files_reminders): register file action
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/fileactions.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index e7994291f38..ad4e599c98e 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -710,6 +710,22 @@
}
});
+ if (Boolean(OC.appswebroots.files_reminders) && Boolean(OC.appswebroots.notifications)) {
+ this.registerAction({
+ name: 'SetReminder',
+ displayName: function(_context) {
+ return t('files', 'Set reminder');
+ },
+ mime: 'all',
+ order: -24,
+ icon: function(_filename, _context) {
+ return OC.imagePath('files_reminders', 'remind.svg')
+ },
+ permissions: OC.PERMISSION_READ,
+ actionHandler: function(_filename, _context) {},
+ });
+ }
+
if (!/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)) {
this.registerAction({
name: 'EditLocally',