Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Whitton committed Apr 2, 2018
1 parent fe7fc00 commit bb160b1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions app/components/lookup-form.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Ember from 'ember';

export default Ember.Component.extend({
tagName: 'form',
classNames: ['lookup-form'],
error: {},

serverErrorMessage: Ember.computed('serverError', function() {
let serverError = this.get('serverError');
if (!serverError) {
Expand All @@ -20,7 +20,7 @@ export default Ember.Component.extend({
submit() {
this.send('getReps');
},

actions: {
getReps() {
this.set('serverError', null);
Expand Down
6 changes: 3 additions & 3 deletions app/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export default Controller.extend({
this._super(...arguments);
this.changeset = new Changeset(this, lookupValidator(PhoneValidation), PhoneValidation);
},

formattedPhoneNumber: computed('phoneNumber', function() {
let number = this.get('phoneNumber');
return formatPhoneNumber(number);
}),

lookup: task(function*(address) {
let response = yield fetch(`${config.API}/${config.API_NAMESPACE}/v1/lookup?address=${address}`);
let {reps, normalizedInput, districts, error} = yield response.json();
Expand All @@ -50,7 +50,7 @@ export default Controller.extend({
this.setProperties({reps, address: normalized, districts});
}
}).drop(),

actions: {
call(phone) {
if (this.changeset.get('isValid')) {
Expand Down
4 changes: 2 additions & 2 deletions app/styles/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
padding: 10px;
display: block;
width: 100%;

&::-webkit-input-placeholder { /* Chrome/Opera/Safari */
font-style: oblique;
font-size: 14px;
Expand All @@ -21,7 +21,7 @@
font-style: oblique;
font-size: 14px;
}

&[disabled] {
opacity: 0.5;
pointer-events: none;
Expand Down
4 changes: 2 additions & 2 deletions app/templates/components/lookup-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
classNameBindings='error.address:is-errored'
value=address
placeholder=(t 'address.placeholder')}}

{{#if error.address}}
<p class="error">{{error.address}}</p>
{{/if}}
Expand All @@ -21,7 +21,7 @@
classNameBindings='phoneChangeset.error.phoneNumber:is-errored'
value=phoneChangeset.phoneNumber
placeholder=(t 'phone-number.placeholder')}}

{{#if phoneChangeset.error.phoneNumber}}
<p class="error">{{t 'validations.phone' value=phoneChangeset.phoneNumber}}</p>
{{/if}}
Expand Down
4 changes: 2 additions & 2 deletions app/templates/index.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="l-medium">

{{language-select}}

<h1 class="aligncenter">Click To Congress</h1>

{{lookup-form
Expand Down

0 comments on commit bb160b1

Please sign in to comment.