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

Show balances #673

Merged
merged 4 commits into from
Aug 19, 2014
Merged

Show balances #673

merged 4 commits into from
Aug 19, 2014

Conversation

deckar01
Copy link
Contributor

If the account has balances in other currencies they are aggregated and displayed on the dashboard.
Currently the STR balance is always on top, then the two currencies with largest balances are shown in descending order. This will make more sense when the "all balances" button is added to provide access to the rest of the balances.
When a new transaction occurs the balances are updated.
This PR also contains a html/sass refactor suggested by @wynlim that groups the dashboard elements by column instead of by row. This cleaned up a lot of duplicate class names, and provides a more modular container structure that will allow the balance list to grow longer if needed.

Fixes #657.

screen shot 2014-08-18 at 4 58 37 pm

screen shot 2014-08-18 at 5 02 18 pm

@jedmccaleb
Copy link

STR shouldn't always be on top. Really we should sort them by $ value rather than nominal amount. But that can come later

'account': session.get('address')
});

accountLinesRequest.on('success', function(result) {
Copy link
Contributor

Choose a reason for hiding this comment

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

add deferred.reject for 'error'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This didn't actually need to be a promise in the first place. Fixed.

@deckar01
Copy link
Contributor Author

I spoke with @jedmccaleb offline. Sorting by $ value is a little out of scope for this PR (and probably this branch). He is going to think more about this, but it doesn't block this PR.

@thejollyrogers
Copy link
Contributor

Pulled down and tested, looks good! 👍

deckar01 pushed a commit that referenced this pull request Aug 19, 2014
@deckar01 deckar01 merged commit f6b3977 into multi-currency Aug 19, 2014
@deckar01 deckar01 deleted the show-balances branch August 19, 2014 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants