-
Notifications
You must be signed in to change notification settings - Fork 230
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
Show process template errors as toasts #1678
Show process template errors as toasts #1678
Conversation
var hideNotificationErrors = function() { | ||
NotificationsService.hideNotification("process-template-error"); | ||
_.each(alerts, function(alert) { | ||
if (alert.id) { |
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.
this assumes that we will only ever put id's on the error alerts, should this also check that the alert is a warning or error alert
e4f6047
to
def2450
Compare
@jwforres Thanks, updated. |
@@ -80,6 +79,8 @@ | |||
}; | |||
|
|||
ctrl.close = function() { | |||
$scope.$broadcast('hideTemplateNotificationErrors'); |
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.
assuming i'll need to do the same thing from my overlay PR then
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.
Yeah, and something similar is needed for from-file
when #1677 goes in.
[merge] |
Evaluated for origin web console merge up to def2450 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1494/) (Base Commit: cdf2198) |
https://trello.com/c/6WVJdgjL