aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/settings/AccountScreen.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-14 13:59:48 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-14 13:59:48 +0200
commit65b0912c4595b0b3cfad0f1d19255f70ba2bc48a (patch)
tree8618baeee61abb6f6991b7edf4897b03daffaad9 /src/containers/settings/AccountScreen.js
parentonly use window.open when url exists (diff)
downloadferdium-app-65b0912c4595b0b3cfad0f1d19255f70ba2bc48a.tar.gz
ferdium-app-65b0912c4595b0b3cfad0f1d19255f70ba2bc48a.tar.zst
ferdium-app-65b0912c4595b0b3cfad0f1d19255f70ba2bc48a.zip
Move checkout to in app instead of external handling
Diffstat (limited to 'src/containers/settings/AccountScreen.js')
-rw-r--r--src/containers/settings/AccountScreen.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js
index 9c74cf2ab..b0354c86b 100644
--- a/src/containers/settings/AccountScreen.js
+++ b/src/containers/settings/AccountScreen.js
@@ -5,6 +5,7 @@ import { inject, observer } from 'mobx-react';
5import PaymentStore from '../../stores/PaymentStore'; 5import PaymentStore from '../../stores/PaymentStore';
6import UserStore from '../../stores/UserStore'; 6import UserStore from '../../stores/UserStore';
7import AppStore from '../../stores/AppStore'; 7import AppStore from '../../stores/AppStore';
8import FeaturesStore from '../../stores/FeaturesStore';
8 9
9import AccountDashboard from '../../components/settings/account/AccountDashboard'; 10import AccountDashboard from '../../components/settings/account/AccountDashboard';
10import ErrorBoundary from '../../components/util/ErrorBoundary'; 11import ErrorBoundary from '../../components/util/ErrorBoundary';
@@ -12,8 +13,9 @@ import { WEBSITE } from '../../environment';
12 13
13export default @inject('stores', 'actions') @observer class AccountScreen extends Component { 14export default @inject('stores', 'actions') @observer class AccountScreen extends Component {
14 onCloseWindow() { 15 onCloseWindow() {
15 const { user } = this.props.stores; 16 const { user, features } = this.props.stores;
16 user.getUserInfoRequest.invalidate({ immediately: true }); 17 user.getUserInfoRequest.invalidate({ immediately: true });
18 features.featuresRequest.invalidate({ immediately: true });
17 } 19 }
18 20
19 reloadData() { 21 reloadData() {
@@ -65,6 +67,7 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend
65AccountScreen.wrappedComponent.propTypes = { 67AccountScreen.wrappedComponent.propTypes = {
66 stores: PropTypes.shape({ 68 stores: PropTypes.shape({
67 user: PropTypes.instanceOf(UserStore).isRequired, 69 user: PropTypes.instanceOf(UserStore).isRequired,
70 features: PropTypes.instanceOf(FeaturesStore).isRequired,
68 payment: PropTypes.instanceOf(PaymentStore).isRequired, 71 payment: PropTypes.instanceOf(PaymentStore).isRequired,
69 app: PropTypes.instanceOf(AppStore).isRequired, 72 app: PropTypes.instanceOf(AppStore).isRequired,
70 }).isRequired, 73 }).isRequired,