diff --git a/js/components/AccountRegister.js b/js/components/AccountRegister.js index 0379a7a..6604b6b 100644 --- a/js/components/AccountRegister.js +++ b/js/components/AccountRegister.js @@ -106,8 +106,8 @@ class TransactionRow extends React.Component {
Date | diff --git a/js/components/AccountsTab.js b/js/components/AccountsTab.js index f508abe..c4e7ae1 100644 --- a/js/components/AccountsTab.js +++ b/js/components/AccountsTab.js @@ -155,23 +155,15 @@ class AccountsTab extends React.Component { constructor() { super(); this.state = { - creatingNewAccount: false, editingAccount: false, deletingAccount: false }; - this.onNewAccount = this.handleNewAccount.bind(this); this.onEditAccount = this.handleEditAccount.bind(this); this.onDeleteAccount = this.handleDeleteAccount.bind(this); - this.onCreationCancel = this.handleCreationCancel.bind(this); this.onEditingCancel = this.handleEditingCancel.bind(this); this.onDeletionCancel = this.handleDeletionCancel.bind(this); - this.onCreateAccount = this.handleCreateAccount.bind(this); this.onUpdateAccount = this.handleUpdateAccount.bind(this); this.onRemoveAccount = this.handleRemoveAccount.bind(this); - this.onAccountSelected = this.handleAccountSelected.bind(this); - } - handleNewAccount() { - this.setState({creatingNewAccount: true}); } handleEditAccount() { this.setState({editingAccount: true}); @@ -179,20 +171,12 @@ class AccountsTab extends React.Component { handleDeleteAccount() { this.setState({deletingAccount: true}); } - handleCreationCancel() { - this.setState({creatingNewAccount: false}); - } handleEditingCancel() { this.setState({editingAccount: false}); } handleDeletionCancel() { this.setState({deletingAccount: false}); } - handleCreateAccount(account) { - if (this.props.onCreateAccount != null) - this.props.onCreateAccount(account); - this.setState({creatingNewAccount: false}); - } handleUpdateAccount(account) { if (this.props.onUpdateAccount != null) this.props.onUpdateAccount(account); @@ -203,10 +187,6 @@ class AccountsTab extends React.Component { this.props.onDeleteAccount(account); this.setState({deletingAccount: false}); } - handleAccountSelected(account) { - this.props.onSelectAccount(account.AccountId); - this.props.onFetchTransactionPage(account, 20, 0); - } render() { var disabled = (this.props.selectedAccount == -1) ? true : false; @@ -215,71 +195,53 @@ class AccountsTab extends React.Component { selectedAccount = this.props.accounts[this.props.selectedAccount]; return ( -
---|