Added accountStore id to prevent conflicts during gzip
[osm/UI.git] / skyquake / plugins / accounts / src / account / accountsDashboard.jsx
index c0e0680..7b56011 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 
+ *
  *   Copyright 2016 RIFT.IO Inc
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,12 +26,13 @@ import 'style/layout.scss';
 class AccountsDashboard extends React.Component {
     constructor(props) {
         super(props);
-        this.Store = this.props.flux.stores.hasOwnProperty('AccountStore') ? this.props.flux.stores.AccountStore : this.props.flux.createStore(AccountStore);
+        this.Store = this.props.flux.stores.hasOwnProperty('AccountStore') ? this.props.flux.stores.AccountStore : this.props.flux.createStore(AccountStore, "AccountStore");
         this.state = this.Store.getState();
     }
     componentWillMount() {
         this.Store.listen(this.updateState);
         this.Store.openAccountsSocket();
+        this.Store.getResourceOrchestrator();
     }
     componentWillUnmount() {
         this.Store.closeSocket();