Repository navigation
[WIP] pubsub replacement of AlertsMessageService - #6187
benjaminapetersen wants to merge 1 commit into
Conversation
|
I think rather than automatically dismiss alerts, we should wait for Patternfly toast notifications, which are coming soon. |
|
Yeah, i think we could convert, or could have: pubsub.publish('alert', { });
pubsub.publish('toast', { });
// or namespace, if we think pubsub usage will grow
pubsub.publish('alert.message', { });
pubsub.publish('alert.toast', { });Would a message vs a toast serve a different purpose? |
|
Does this get rid of the |
|
Yup 😋 For that reason I'd be up for finishing this now, then fixing for toasts later. |
|
Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again |
|
We should look at notifications and the notification service in angular-patternfly to see how it fits with what you have. |
|
Definitely, lets try to use. I do like a single I'm a little wary of the PF Notification List sharing a |
|
TODO (per conversation today):
|
There was a problem hiding this comment.
Does this work properly with multiple alerts or when an alert is dismissed, then another alert with the same type is displayed?
There was a problem hiding this comment.
I believe the ng-repeat should treat each alert separately, the ng-switch should cycle for individual alerts. So at this point you should get stacked alerts of the same type, not a queue (which is prob good, we don't have a priority system).
There was a problem hiding this comment.
Yeah, I'm asking more about Bootstrap data-dismiss="alert" because I don't know how it works. For instance, if I add another alert back with the same key, will it show up or stay dismissed from before?
|
@benjaminapetersen It looks like you can't use the Interestingly, their notification disappears after a delay unless you specify persistent. Persistent notifications have a dismiss button. |
|
Interesting, looks like cause all notifications are listed off of |
|
Wonder if they're using root scope so notifications persist as you navigate to different pages. |
|
Probably, as an alt to storing in a service. |
|
Looks like Toasts landed in Patternfly 2.9.0 |
|
Yep, we have an open issue related to icons in topology view preventing us
|
|
Need to reopen to new ui repo if still valid. |
$scope.alertsdismissableproperty to alerts, allowing user to dismiss w/icon (see patternfly reference)durationproperty to alerts, allowing auto dismiss after timeoutpubsub.publishfor immediate alertpubsub.publishAsyncfor delay, such as route change, before creating alertQuick example, if all properties used:
@spadgett @jwforres for thoughts