aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_reminders/src/init.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_reminders/src/init.ts')
-rw-r--r--apps/files_reminders/src/init.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/files_reminders/src/init.ts b/apps/files_reminders/src/init.ts
new file mode 100644
index 00000000000..17da254d0f2
--- /dev/null
+++ b/apps/files_reminders/src/init.ts
@@ -0,0 +1,19 @@
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+import { registerDavProperty, registerFileAction } from '@nextcloud/files'
+import { action as statusAction } from './actions/reminderStatusAction'
+import { action as clearAction } from './actions/clearReminderAction'
+import { action as menuAction } from './actions/setReminderMenuAction'
+import { actions as suggestionActions } from './actions/setReminderSuggestionActions'
+import { action as customAction } from './actions/setReminderCustomAction'
+
+registerDavProperty('nc:reminder-due-date', { nc: 'http://nextcloud.org/ns' })
+
+registerFileAction(statusAction)
+registerFileAction(clearAction)
+registerFileAction(menuAction)
+registerFileAction(customAction)
+suggestionActions.forEach((action) => registerFileAction(action))