diff options
Diffstat (limited to 'src/containers/settings/AccountScreen.js')
-rw-r--r-- | src/containers/settings/AccountScreen.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js index 8d92b01be..cc3929656 100644 --- a/src/containers/settings/AccountScreen.js +++ b/src/containers/settings/AccountScreen.js | |||
@@ -12,7 +12,6 @@ import ErrorBoundary from '../../components/util/ErrorBoundary'; | |||
12 | import { LIVE_FRANZ_API } from '../../config'; | 12 | import { LIVE_FRANZ_API } from '../../config'; |
13 | import { WEBSITE } from '../../environment'; | 13 | import { WEBSITE } from '../../environment'; |
14 | 14 | ||
15 | export default | ||
16 | @inject('stores', 'actions') | 15 | @inject('stores', 'actions') |
17 | @observer | 16 | @observer |
18 | class AccountScreen extends Component { | 17 | class AccountScreen extends Component { |
@@ -58,16 +57,16 @@ class AccountScreen extends Component { | |||
58 | user={user.data} | 57 | user={user.data} |
59 | isLoading={isLoadingUserInfo} | 58 | isLoading={isLoadingUserInfo} |
60 | userInfoRequestFailed={ | 59 | userInfoRequestFailed={ |
61 | user.getUserInfoRequest.wasExecuted | 60 | user.getUserInfoRequest.wasExecuted && |
62 | && user.getUserInfoRequest.isError | 61 | user.getUserInfoRequest.isError |
63 | } | 62 | } |
64 | retryUserInfoRequest={() => this.reloadData()} | 63 | retryUserInfoRequest={() => this.reloadData()} |
65 | onCloseSubscriptionWindow={() => this.onCloseWindow()} | 64 | onCloseSubscriptionWindow={() => this.onCloseWindow()} |
66 | deleteAccount={userActions.delete} | 65 | deleteAccount={userActions.delete} |
67 | isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting} | 66 | isLoadingDeleteAccount={user.deleteAccountRequest.isExecuting} |
68 | isDeleteAccountSuccessful={ | 67 | isDeleteAccountSuccessful={ |
69 | user.deleteAccountRequest.wasExecuted | 68 | user.deleteAccountRequest.wasExecuted && |
70 | && !user.deleteAccountRequest.isError | 69 | !user.deleteAccountRequest.isError |
71 | } | 70 | } |
72 | openEditAccount={() => this.handleWebsiteLink('/user/profile')} | 71 | openEditAccount={() => this.handleWebsiteLink('/user/profile')} |
73 | openInvoices={() => this.handleWebsiteLink('/user/invoices')} | 72 | openInvoices={() => this.handleWebsiteLink('/user/invoices')} |
@@ -89,3 +88,5 @@ AccountScreen.wrappedComponent.propTypes = { | |||
89 | user: PropTypes.instanceOf(UserStore).isRequired, | 88 | user: PropTypes.instanceOf(UserStore).isRequired, |
90 | }).isRequired, | 89 | }).isRequired, |
91 | }; | 90 | }; |
91 | |||
92 | export default AccountScreen; | ||