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', diff --git a/apps/files_reminders/img/remind.svg b/apps/files_reminders/img/remind.svg new file mode 100644 index 00000000000..23e2d456813 --- /dev/null +++ b/apps/files_reminders/img/remind.svg @@ -0,0 +1,5 @@ + + + +