diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-08-02 19:15:00 -0700 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2023-08-10 12:28:19 +0200 |
commit | 5c6925dd8eba5159d35c73aaa29879fbd0909b90 (patch) | |
tree | 6d376af6de009d78ebd7c75cb21752302112d699 | |
parent | 1d4663270ed653e2f49367a9d2fe791df4283074 (diff) | |
download | nextcloud-server-5c6925dd8eba5159d35c73aaa29879fbd0909b90.tar.gz nextcloud-server-5c6925dd8eba5159d35c73aaa29879fbd0909b90.zip |
feat(files_reminders): register file action
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit d6bf9e3c10846d403468e70b39ef34af61458094)
-rw-r--r-- | apps/files/js/fileactions.js | 16 | ||||
-rw-r--r-- | apps/files_reminders/img/remind.svg | 5 |
2 files changed, 21 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', 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"> + <path d="M0 0h24v24H0V0z" fill="none" /> + <path + d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z" /> +</svg> |