Skip to content

Commit

Permalink
Update toast error notification cleanup for components that are in di…
Browse files Browse the repository at this point in the history
…alogs
  • Loading branch information
jwforres committed Jun 13, 2017
1 parent 8844c42 commit f473707
Show file tree
Hide file tree
Showing 6 changed files with 447 additions and 247 deletions.
1 change: 1 addition & 0 deletions app/scripts/directives/fromFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ angular.module("openshiftConsole")
// button is outside the component since it is in the wizard footer. Listen
// for an event for when the button is clicked.
$scope.$on('importFileFromYAMLOrJSON', $scope.create);
$scope.$on('$destroy', hideErrorNotifications);
}
};
});
2 changes: 1 addition & 1 deletion app/scripts/directives/processTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
// button is outside the component since it is in the wizard footer. Listen
// for an event for when the button is clicked.
$scope.$on('instantiateTemplate', ctrl.createFromTemplate);
$scope.$on('hideTemplateNotificationErrors', hideNotificationErrors);
$scope.$on('$destroy', hideNotificationErrors);

var shouldAddAppLabel = function() {
// If the template defines its own app label, we don't need to add one at all
Expand Down
2 changes: 0 additions & 2 deletions app/scripts/directives/processTemplateDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@
};

ctrl.close = function() {
$scope.$broadcast('hideTemplateNotificationErrors');

var cb = ctrl.onDialogClosed();
if (_.isFunction(cb)) {
cb();
Expand Down
Loading

0 comments on commit f473707

Please sign in to comment.