-
Notifications
You must be signed in to change notification settings - Fork 0
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
friendship page now has the option to show settled transactions #6
Conversation
let relatedObjectId = this.get('friendship.friendshipDataId') | ||
|
||
let settledTransactions = this.get('store').filter('transaction', t => { | ||
console.log(t.get('memo')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should remove console.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh shit ...
@@ -11,7 +11,8 @@ let Transaction = DS.Model.extend({ | |||
creator: DS.belongsTo('user'), | |||
createdAt: DS.attr('Date', { | |||
defaultValue: function() { return new Date() } | |||
}) | |||
}), | |||
is_settled: DS.attr('boolean') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
property name should be camelCase (isSettled
). Also, should move it between amount
and model
properties.
@Bbowen100 Tested it out and it works 👍 . I did leave some comments that are mostly stylistic. What was the need to create a separate component for the Also, the current main transaction list shows all transactions, we'd like to filter that to only show un settled transactions. If users want to see settled transactions, they can open up the collapsed list. |
What was the need to create a separate component for the settled-list. Why couldn't we just expand the transaction-list component to accomodate for this?
Also, the current main transaction list shows all transactions, we'd like to filter that to only show un settled transactions. If users want to see settled transactions, they can open up the collapsed list.
|
…ows only unsettled transactions
…n-list, added property to differentiate between settled and unsettled transactions, changed settled-transaction button to full width of component
@@ -0,0 +1,26 @@ | |||
import { moduleForComponent, test } from 'ember-qunit'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this file anymore.
@Bbowen100 minor changes recommended. Good work on the PR. |
|
||
.btn.settle-transaction { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're using this class else where, don't need to remove it.
Looks good 👍 |
No description provided.