-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update notification ("Update to Nextcloud ... is available") is not clickable #1038
Comments
@nickvergessen do you have maybe some pointers or an example how to implement clickable links in notifications? If it is easy, I would have a look. Thanks! |
it's already linking there for admins. Maybe the route was changed? |
@caugner did you get the notification as "normal user" or as admin? |
Admin. edit: I guess this is the route that it should link to? And to be clear, the HTML doesn't contain anything link-ish: |
Luckily, I have one instance that has both a Nextcloud update and app update notification, the only difference being the missing (This is the response of {
"ocs": {
"meta": {
"status": "ok",
"statuscode": 200,
"message": "OK"
},
"data": [
{
"notification_id": 18,
"app": "updatenotification",
"user": "***",
"datetime": "2021-07-01T22:20:01+00:00",
"object_type": "core",
"object_id": "20.0.11.1",
"subject": "Update to Nextcloud 20.0.11 is available.",
"message": "",
"link": "https:\/\/nextcloud.example.com\/index.php\/settings\/admin\/overview#version",
"subjectRich": "",
"subjectRichParameters": [],
"messageRich": "",
"messageRichParameters": [],
"icon": "https:\/\/nextcloud.example.com\/apps\/updatenotification\/img\/notification.svg",
"actions": []
},
{
"notification_id": 17,
"app": "updatenotification",
"user": "***",
"datetime": "2021-06-29T17:50:12+00:00",
"object_type": "calendar",
"object_id": "2.3.0",
"subject": "Update for Calendar to version 2.3.0 is available.",
"message": "",
"link": "https:\/\/nextcloud.example.com\/index.php\/settings\/apps\/updates#app-calendar",
"subjectRich": "Update for {app} to version 2.3.0 is available.",
"subjectRichParameters": {
"app": {
"type": "app",
"id": "calendar",
"name": "Calendar"
}
},
"messageRich": "",
"messageRichParameters": [],
"icon": "https:\/\/nextcloud.example.com\/apps\/updatenotification\/img\/notification.svg",
"actions": []
}
]
}
} |
The culprit may be in https://github.com/nextcloud/notifications: notifications/src/Components/Notification.vue Lines 181 to 193 in f142ef3
edit: Possibly related: #1029 |
Looks like it. So needs to be fixed in the notifications app, afaics. |
Fix is in #883 -.- Someone forgot to backport 👯 |
Thanks! |
How to use GitHub
Is your feature request related to a problem? Please describe.
When a Nextcloud update is available, Nextcloud shows a notification to admins. However, this notification is purely informative and is not interactive.
Describe the solution you'd like
It would be nice if the Nextcloud update notification would be a link to the "Settings" > "Overview" page (which includes the "Open updater" and "Download now" buttons).
Describe alternatives you've considered
(None.)
Additional context
![grafik](https://user-images.githubusercontent.com/495429/114154483-bfc08300-9920-11eb-81d2-43097d3b3e06.png)
In this screenshot:
The text was updated successfully, but these errors were encountered: