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

Fix status and date on waiting list #54

Merged
merged 1 commit into from Aug 23, 2015
Merged

Fix status and date on waiting list #54

merged 1 commit into from Aug 23, 2015

Conversation

steveklabnik
Copy link
Contributor

Make both of these fields work.

There's a small amount of DRY violation going on, and it's possible that instead of computed properties, these should be helpers. I slightly prefer computed properties but it's no biggie either way.

@@ -12,4 +12,22 @@ export default DS.Model.extend({
credit: DS.attr('string'),
want: DS.attr('string'),
notes: DS.attr('string'),

statusText: function() {
Copy link

Choose a reason for hiding this comment

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

nitpick: Ember.computed('status', function() { is currently preferred to prototype extension syntax

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍❤️

On Aug 22, 2015, at 18:43, Ricardo Mendes notifications@github.com wrote:

In app/models/customer.js:

@@ -12,4 +12,22 @@ export default DS.Model.extend({
credit: DS.attr('string'),
want: DS.attr('string'),
notes: DS.attr('string'),
+

  • statusText: function() {
    nitpick: Ember.computed('status', function() { is currently preferred to prototype extension syntax


Reply to this email directly or view it on GitHub.

@ashleygwilliams
Copy link
Contributor

r+, (though i sort think these should be helpers, fine for now)

@ashleygwilliams
Copy link
Contributor

squash 🍆 plz 😉

Also, format them correctly.

Relies on artisan-tattoo/assistant-api#75

Fixes #50
@steveklabnik
Copy link
Contributor Author

Squashed!

ashleygwilliams added a commit that referenced this pull request Aug 23, 2015
Fix status and date on waiting list
@ashleygwilliams ashleygwilliams merged commit 73c7c5e into master Aug 23, 2015
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