From 7573fe27439ab7a1e5ed620d505515e47453599e Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Mon, 30 Dec 2024 15:04:33 +0100 Subject: [PATCH] fix(dev_manual): add a note about jQuery drop in Notifications app Signed-off-by: Maksim Sukharev --- .../app_upgrade_guide/upgrade_to_31.rst | 8 ++++++++ developer_manual/digging_deeper/javascript-apis.rst | 2 ++ 2 files changed, 10 insertions(+) diff --git a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst index 94bd082bdc2..60267f46382 100644 --- a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst +++ b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst @@ -60,7 +60,15 @@ Removed APIs ^^^^^^^^^^^^ - ``OCA.FilesSharingDrop`` removed as part of the Vue migration. Use the Files app API provided by the :ref:`package` . +- ``$.Event('OCA.Notification.Action')`` jQuery event removed from Notifications app as part of the Vue migration. Use ``@nextcloud/event-bus`` :ref:`package` instead. +.. code-block:: JavaScript + + import { subscribe, unsubscribe } from '@nextcloud/event-bus' + + subscribe('notifications:action:execute', (event) => { + console.info('Notification action has been executed:', event.notification, event.action) + }) Back-end changes ---------------- diff --git a/developer_manual/digging_deeper/javascript-apis.rst b/developer_manual/digging_deeper/javascript-apis.rst index e48b2aa61a5..904b7f4e7ca 100644 --- a/developer_manual/digging_deeper/javascript-apis.rst +++ b/developer_manual/digging_deeper/javascript-apis.rst @@ -55,6 +55,8 @@ This package provides information about the current user and session. Documentat This package provides an `Axios `_ HTTP client instance, ready to send request to the Nextcloud server. If you use this instance you do not have to care about authentication and special headers. Documentation: https://nextcloud-libraries.github.io/nextcloud-axios/ +.. _js-library_nextcloud-event-bus: + ``@nextcloud/event-bus`` ^^^^^^^^^^^^^^^^^^^^^^^^