nextcloud/apps/federatedfilesharing/js
Daniel Calviño Sánchez af773d5ce1 fix: Fix opening "Remote shares" dialog even if Notifications is available
The dialog is supposed to be shown only if the Notifications app is not
available, and to know whether it is available or not it is checked if
the header contains the Notifications button. However, in Nextcloud 25
the DOM of the Notifications app changed, so the button is no longer
found and thus the dialog was always shown when there are pending
shares.

Even if the correct element query was used the dialog may be still shown
anyway if "external.js" is loaded before the notifications button is
added to the header. Therefore now it is checked if the Notifications
app is available or not from the OC API.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-04-15 05:40:04 +02:00
..
external.js fix: Fix opening "Remote shares" dialog even if Notifications is available 2024-04-15 05:40:04 +02:00