Add Export button to Accounts (#2147)

This commit is contained in:
Nicolas Gotchac 2016-10-25 18:06:05 +02:00
parent 2d2e9c4d6e
commit 92bdfb1234

View File

@ -22,7 +22,7 @@ import { uniq } from 'lodash';
import List from './List';
import { CreateAccount } from '../../modals';
import { Actionbar, ActionbarSearch, ActionbarSort, Button, Page, Tooltip } from '../../ui';
import { Actionbar, ActionbarExport, ActionbarSearch, ActionbarSort, Button, Page, Tooltip } from '../../ui';
import styles from './accounts.css';
@ -96,6 +96,8 @@ class Accounts extends Component {
}
renderActionbar () {
const { accounts } = this.props;
const buttons = [
<Button
key='newAccount'
@ -103,6 +105,11 @@ class Accounts extends Component {
label='new account'
onClick={ this.onNewAccountClick } />,
<ActionbarExport
key='exportAccounts'
content={ accounts }
filename='accounts.json' />,
this.renderSearchButton(),
this.renderSortButton()
];