Implement SessionStore
This wraps session-related state into a basic flux store. The localStorage item 'mx_pass' is the only thing managed by this store for now but it could easily be extended to track other items (like the teamToken which is passed around through props a lot)
This commit is contained in:
parent
8725ef3863
commit
1176573f39
6 changed files with 104 additions and 32 deletions
|
@ -51,7 +51,7 @@ export default React.createClass({
|
|||
|
||||
// Has the user generated a password that is stored in local storage?
|
||||
// (are they a PWLU?)
|
||||
userHasGeneratedPassword: React.PropTypes.boolean,
|
||||
userHasGeneratedPassword: React.PropTypes.bool,
|
||||
|
||||
// and lots and lots of other stuff.
|
||||
},
|
||||
|
@ -216,7 +216,6 @@ export default React.createClass({
|
|||
enableLabs={this.props.config.enableLabs}
|
||||
referralBaseUrl={this.props.config.referralBaseUrl}
|
||||
teamToken={this.props.teamToken}
|
||||
cachedPassword={this.props.cachedPassword}
|
||||
/>;
|
||||
if (!this.props.collapse_rhs) right_panel = <RightPanel opacity={this.props.sideOpacity}/>;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue