nextcloud-dialogs icon indicating copy to clipboard operation
nextcloud-dialogs copied to clipboard

Prevent repeated dialog toast messages

Open theronakpatel opened this issue 3 years ago • 3 comments

When there is an error, Nextcloud typically generates many repeated messages to the user. We can at least modify the nextcloud-dialogs library to not show a message already on screen. Alternatively, identify a few cases (like storage full) and buffer those on the component generating the alert.

Screenshot (4)

theronakpatel avatar Jan 31 '23 19:01 theronakpatel

Alternatively, identify a few cases (like storage full) and buffer those on the component generating the alert.

Yeah that should be done. I don't think it's the job of the lib to deduplicate, because it can not know if that is needed or not. Maybe the user pressed another button and again receives a "No permissions" error. So it should be triggered again.

Storage notification should therefore be fixed in the files app.

nickvergessen avatar Feb 14 '23 08:02 nickvergessen

@nickvergessen but cant we hide previous one first then show new notification!

theronakpatel avatar Feb 14 '23 08:02 theronakpatel

yeah the code that creates it can do that already.

nickvergessen avatar Feb 14 '23 14:02 nickvergessen