diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-02-13 15:25:51 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-02-14 11:53:10 -0800 |
commit | e64b4fe6493b7d73374136d9a233ab17abf715b3 (patch) | |
tree | e96c75622c35c98c8c750c5a3c85fdf8755bdf01 /apps/files_reminders/src/components/SetCustomReminderModal.vue | |
parent | 66f4c677c74c0d278b789542b514f570a3bf3abc (diff) | |
download | nextcloud-server-e64b4fe6493b7d73374136d9a233ab17abf715b3.tar.gz nextcloud-server-e64b4fe6493b7d73374136d9a233ab17abf715b3.zip |
enh(files_reminders): Allow clearing reminders
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_reminders/src/components/SetCustomReminderModal.vue')
-rw-r--r-- | apps/files_reminders/src/components/SetCustomReminderModal.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_reminders/src/components/SetCustomReminderModal.vue b/apps/files_reminders/src/components/SetCustomReminderModal.vue index 4e3c5fb0fca..40895fec7a9 100644 --- a/apps/files_reminders/src/components/SetCustomReminderModal.vue +++ b/apps/files_reminders/src/components/SetCustomReminderModal.vue @@ -64,10 +64,11 @@ </template> <script lang="ts"> +import Vue from 'vue' import type { Node } from '@nextcloud/files' +import { emit } from '@nextcloud/event-bus' import { showError, showSuccess } from '@nextcloud/dialogs' import { translate as t } from '@nextcloud/l10n' -import Vue from 'vue' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcDateTime from '@nextcloud/vue/dist/Components/NcDateTime.js' @@ -156,6 +157,8 @@ export default Vue.extend({ try { await setReminder(this.fileId, this.customDueDate) + Vue.set(this.node.attributes, 'reminder-due-date', this.customDueDate.toISOString()) + emit('files:node:updated', this.node) showSuccess(t('files_reminders', 'Reminder set for "{fileName}"', { fileName: this.fileName })) this.onClose() } catch (error) { |