projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Platform Role Assignments take 2
[osm/UI.git]
/
skyquake
/
plugins
/
user_management
/
src
/
dashboard
/
dashboard.jsx
diff --git
a/skyquake/plugins/user_management/src/dashboard/dashboard.jsx
b/skyquake/plugins/user_management/src/dashboard/dashboard.jsx
index
c86d6b1
..
6012050
100644
(file)
--- a/
skyquake/plugins/user_management/src/dashboard/dashboard.jsx
+++ b/
skyquake/plugins/user_management/src/dashboard/dashboard.jsx
@@
-24,9
+24,9
@@
class UserManagementDashboard extends React.Component {
constructor(props) {
super(props);
this.Store = this.props.flux.stores.hasOwnProperty('UserManagementStore') ? this.props.flux.stores.UserManagementStore : this.props.flux.createStore(UserManagementStore);
constructor(props) {
super(props);
this.Store = this.props.flux.stores.hasOwnProperty('UserManagementStore') ? this.props.flux.stores.UserManagementStore : this.props.flux.createStore(UserManagementStore);
-
this.Store.getUsers
();
-
this.state = this.Store.getState()
;
- this.actions = this.state.actions;
+
this.state = this.Store.getState
();
+
this.actions = this.state.actions
;
+
}
componentDidUpdate() {
let self = this;
}
componentDidUpdate() {
let self = this;
@@
-38,6
+38,7
@@
class UserManagementDashboard extends React.Component {
}
componentWillMount() {
this.Store.listen(this.updateState);
}
componentWillMount() {
this.Store.listen(this.updateState);
+ this.Store.getUsers();
}
componentWillUnmount() {
this.Store.unlisten(this.updateState);
}
componentWillUnmount() {
this.Store.unlisten(this.updateState);