-
Notifications
You must be signed in to change notification settings - Fork 60
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
Support bind parameters #409
Conversation
a92a921
to
5a865ac
Compare
5a865ac
to
c20f393
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.
LGTM, just the one repeated nit.
this.bindParametersStep.hidden = this.bindStep.hidden || | ||
this.ctrl.bindType === 'none' || | ||
!_.has(this.ctrl, 'bindParameterSchema.properties'); | ||
this.bindParametersStep.allowed = !this.bindParametersStep.hidden && this.bindStep.valid; |
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.
nit: don't really need to check hidden here, if it is hidden then allowed will never be used.
@@ -174,7 +196,17 @@ export class OrderServiceController implements angular.IController { | |||
|
|||
this.validityWatcher = this.$scope.$watch("$ctrl.forms.bindForm.$valid", (isValid: any, lastValue: any) => { | |||
this.bindStep.valid = isValid; | |||
this.reviewStep.allowed = this.bindStep.valid; | |||
this.bindParametersStep.allowed = !this.bindParametersStep.hidden && isValid; |
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.
nit: don't really need to check hidden here, if it is hidden then allowed will never be used.
c20f393
to
5331a83
Compare
Needs a common bump :( |
Sorry I shouldn't have removed WIP without the common release |
https://trello.com/c/Sws4p5jU
Requires openshift/origin-web-common#163
See also openshift/origin-web-console#1987
@jeff-phillips-18 FYI