Skip to content

Commit b65fb2e

Browse files
authored
Merge pull request #11716 from nextcloud/fix/deprecate-oc-dialogs-functions
fix(developer): Deprecate `OC.dialogs`
2 parents 384e8a5 + 636fdc0 commit b65fb2e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ Deprecated APIs
3232

3333
* ``OC.dialogs.fileexists`` was already deprecated in Nextcloud 29, but is now also marked as such.
3434
Use ``openConflictPicker`` from `@nextcloud/upload <https://nextcloud-libraries.github.io/nextcloud-upload/functions/openConflictPicker.html>`_ instead.
35+
* Most ``OC.dialogs`` API is now deprecated and will be removed in the future. For generic dialogs use the ``DialogBuilder`` from the :ref:`js-library_nextcloud-dialogs`.
36+
A list of the now deprecated methods:
37+
38+
* ``OC.dialogs.alert``
39+
* ``OC.dialogs.info``
40+
* ``OC.dialogs.confirm``
41+
* ``OC.dialogs.confirmDestructive``
42+
* ``OC.dialogs.confirmHtml``
43+
* ``OC.dialogs.prompt``
44+
* ``OC.dialogs.message``
3545

3646
Back-end changes
3747
----------------

developer_manual/digging_deeper/javascript-apis.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ This package provides an `Axios <https://www.npmjs.com/package/axios>`_ HTTP cli
5757

5858
This package provides a simple event bus implementation that integrates with server and other apps. Thus it is one of the recommended ways of inter-app communication. Documentation: https://nextcloud-libraries.github.io/nextcloud-event-bus/
5959

60+
.. _js-library_nextcloud-dialogs:
61+
6062
``@nextcloud/dialogs``
6163
^^^^^^^^^^^^^^^^^^^^^^
6264

0 commit comments

Comments
 (0)