Skip to content

F51-462, F51-275, F51-102 - add to cart validation & row flexing#125

Merged
olsonkr merged 3 commits intoordercloud-api:developmentfrom
robertsoniv:development
Jun 7, 2017
Merged

F51-462, F51-275, F51-102 - add to cart validation & row flexing#125
olsonkr merged 3 commits intoordercloud-api:developmentfrom
robertsoniv:development

Conversation

@robertsoniv
Copy link
Copy Markdown
Contributor

See commits for details.

- Also, move the set default quantity functionality into the
  oc-quantity-input directive.
- Remove the setDefaultQuantity function from oc-product-card
- Update oc-product-card to a directive so we can use the replace
  setting (true); this allows us to properly flex the product cards
  within a generic .row-flex class
- Add a "size" attribute to oc-quantity-input, possible values:
  lg, md, sm, xs
@robertsoniv
Copy link
Copy Markdown
Contributor Author

Actual possible size values are "sm" and "lg" - I got it wrong in my commit message.

@robertsoniv
Copy link
Copy Markdown
Contributor Author

I will be pushing one more task to this PR before re-opening

@robertsoniv robertsoniv reopened this Jun 6, 2017
@robertsoniv robertsoniv changed the title F51-462, F51-275 - Add to cart validation & product card styling updates F51-462, F51-275, F51-102 - add to cart validation & row flexing Jun 6, 2017
templateUrl: 'common/directives/oc-product-card/oc-product-card.html',
controller: 'ProductCardCtrl',
controllerAs: 'productCard',
replace: true,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been deprecated for a while now.

require: '^?ocPrettySubmit',
templateUrl: 'common/directives/oc-quantity-input/oc-quantity-input.html',
replace: true,
link: function (scope) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like it's only deprecated on 2.0+. We're still on 1.6.0.

@crhistianramirez
Copy link
Copy Markdown
Contributor

javascript looks ok except for the replace:true thing

Copy link
Copy Markdown
Contributor

@spencerwalker spencerwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Styles look good

Copy link
Copy Markdown
Contributor

@olsonkr olsonkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F51-462 looks good. I'll update the recplace: true usages.

@robertsoniv
Copy link
Copy Markdown
Contributor Author

replace: true is what makes the styles work. without it I will have to change html.

@olsonkr olsonkr dismissed crhistianramirez’s stale review June 7, 2017 13:49

replace: true is still available in our version of angular

@olsonkr olsonkr merged commit 175e99a into ordercloud-api:development Jun 7, 2017
crhistianramirez pushed a commit to crhistianramirez/angular-buyer that referenced this pull request Jun 13, 2017
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.

4 participants