Notification Settings: Add duration to notice after successfully saving #3254
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses part of the issue in #3203.
This "should" cause the notices to disappear after a 4 second timeout. Although, in testing, I'm still noticing that a notice will stick around. I'm not sure why this is yet. And until we figure that out, it's pretty awkward that some notices will disappear while one or more won't.
@artpi suggested that this section be refactored such that the notices are included inline with each site's settings. cc @rickybanister for thoughts on that.
To test:
update/me-notification-settings-notices
branch/me/notifications
cc @rodrigoi who I believe wrote most of notification settings.