-
Notifications
You must be signed in to change notification settings - Fork 816
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
Bugfix/two factor notification #4518
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some small comments
The activitylistmodel test is failing, probably needs some small changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
You are right, we should not use "Mark as read" for everything and "Approve" and "Cancel" work here :)
Is this wording provided by the API itself or it is something we have to explicitly decide every time?
It is provided by the api. |
that is the thing: we shouldn't be checking for these texts. We should just display what is in the notification. I will remove the 'Mark as Read' and just use what comes with the API. However if nothing is provided we will use 'Dismiss', is that ok @nimishavijay? |
Sounds good! 🚀 |
5dce8a0
to
a0f94ed
Compare
Yes, I am trying to understand why it is failing which is making me afraid that I might be breaking something else while fixing this issue... |
a0f94ed
to
779be91
Compare
779be91
to
4e5bbca
Compare
Btw @camilasan, every notification with actions also needs a clear primary action button. In this case that would be "Approve". :) |
going to merge it as is and create a follow up issue as we need this to fix the bug that prevent people from using 2FA with Nextcloud notifications thanks for the feedback 😄 |
/backport to stable-3.5 |
Signed-off-by: Camila <[email protected]>
Signed-off-by: Camila <[email protected]>
4e5bbca
to
290851c
Compare
SonarCloud Quality Gate failed. |
AppImage file: Nextcloud-PR-4518-290851c33a996fd4a9d89c60b9f5be5ae0af627e-x86_64.AppImage |
Before:
After:
@nimishavijay We are always using 'Mark as Read' in all notifications. May I suggest to simply always use what comes with the notification, like in this case it should be 'Cancel'. That was one of the reasons that we had this bug.