Skip to content

Commit

Permalink
Add "Add first account" button when starting Sage for the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Aug 5, 2019
1 parent df5f3b4 commit a4e4bf8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/src/Balances.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ export default function Balances({ syncTime }) {
<Table responsive>
<tbody>
<tr><th>Account</th><th>Balance</th></tr>
{accounts.length !== 0 ? null :
<tr>
<td><Link to="/accounts/new" className="btn btn-outline-primary">Add your first account</Link></td>
<td></td>
</tr>
}
{accounts.map(account =>
<tr key={account.ID}>
<td>{account.Account}</td>
Expand Down

0 comments on commit a4e4bf8

Please sign in to comment.