Skip to content

Commit

Permalink
- Minor bux fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Royedc4 committed Mar 10, 2017
1 parent 2a0de57 commit a79588e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 12 additions & 8 deletions stitch-order-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,18 @@
@apply(--layout-center-center);
}

#error p, #error iron-icon {
display: inline-block;
#error {
@apply(--layout-horizontal);
@apply(--layout-center-center);
color: var(--primary-error-color, --paper-red-a200);
}

#error p {
color: var(--primary-error-color, --paper-red-a200);
#error[hidden] {
display: none;
}

#error iron-icon {
display: inline-block;
color: var(--primary-error-color, --paper-red-a700);
}

Expand Down Expand Up @@ -153,11 +156,11 @@ <h1>Order Product</h1>

<div class="spinner">
<paper-spinner id="formSpinner" alt="Loading product details"></paper-spinner>
</div>

<div id="error" hidden$="[[!fail]]">
<iron-icon icon="stitch-order:error"></iron-icon>
<p>[[failMessage]]</p>
</div>
<div id="error" hidden$="[[!fail]]">
<iron-icon icon="stitch-order:error"></iron-icon>
[[failMessage]]
</div>

<form is="iron-form" id="form" method="get" content-type="application/json">
Expand Down Expand Up @@ -333,6 +336,7 @@ <h3>Total Cost</h3>
this._setFailMessage('');
},
error: function(details){
this.loading = false;
this._errorDetails = details;
this._setFail(true);
this._setFailMessage(details.Message[0]);
Expand Down
4 changes: 1 addition & 3 deletions stitch-order-request.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@
var options = [];

dimensions.forEach(function(dimension){
if (product[dimension]) {
options.push({name: dimension, values: [], selected: product[dimension][0]});
}
options.push({name: dimension, values: [], selected: product[dimension] && product[dimension][0]});
});

variations = variations.Item;
Expand Down

0 comments on commit a79588e

Please sign in to comment.