Skip to content
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

Merged
merged 1 commit into from
Sep 6, 2017
Merged

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented Aug 30, 2017

Copy link
Member

@jeff-phillips-18 jeff-phillips-18 left a 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;
Copy link
Member

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;
Copy link
Member

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.

@spadgett spadgett changed the title [WIP] Support bind parameters Support bind parameters Sep 6, 2017
@dtaylor113 dtaylor113 merged commit bac26c4 into openshift:master Sep 6, 2017
@spadgett
Copy link
Member Author

spadgett commented Sep 6, 2017

Needs a common bump :(

@spadgett
Copy link
Member Author

spadgett commented Sep 6, 2017

Sorry I shouldn't have removed WIP without the common release

@spadgett spadgett deleted the bind-parameters branch September 6, 2017 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants