-
Notifications
You must be signed in to change notification settings - Fork 231
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
Correct ProjectNameTaken error handling in various add-to-projects wizards #2473
Correct ProjectNameTaken error handling in various add-to-projects wizards #2473
Conversation
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.
Generally LGTM, just a few small comments
app/scripts/directives/fromFile.js
Outdated
@@ -33,10 +33,16 @@ angular.module("openshiftConsole") | |||
$scope.noProjectsCantCreate = true; | |||
}); | |||
|
|||
$scope.projectNameTaken = false; |
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.
Shouldn't need to initialize here since the $watch
below is called immediately and will set it to false.
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.
Fixed
NotificationsService.addNotification({ | ||
id: "deploy-image-create-project-error", | ||
type: "error", | ||
message: "An error occurred creating project", |
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.
We make the message a complete sentence with punctuation when possible.
"An error occurred creating project."
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.
Fixed
app/scripts/directives/fromFile.js
Outdated
NotificationsService.addNotification({ | ||
id: "import-create-project-error", | ||
type: "error", | ||
message: "An error occurred creating project", |
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.
"An error occurred creating project."
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.
Fixed
/kind bug |
…te, and fromFile wizards
2cc4579
to
6494391
Compare
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.
Thanks @dtaylor113
/lgtm |
Automatic merge from submit-queue. |
Updated deployImage, processTemplate, and fromFile wizards.
Fixes #1955