Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix reload in admin - Fix DND in admin.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 23, 2017
1 parent ae56001 commit 93dc7f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/src/plugins/access.ajxp_conf/ajxp_confActions.xml
Expand Up @@ -196,6 +196,7 @@
</gui>
<rightsContext noUser="true" userLogged="only" read="true" write="true" adminOnly="true"/>
<processing>
<clientCallback module="AdminActions.Callbacks.applyDND"/>
<serverCallback methodName="usersAction" developerComment="Move an existing user to an existing group" restParams="/file/group_path+">
<input_param description="User identifier" name="file" type="String"/>
<input_param description="Target group path, must be /group/path" name="group_path" type="String"/>
Expand Down
Expand Up @@ -347,6 +347,7 @@ let Dashboard = React.createClass({
node={this.state.currentNode}
dataModel={this.state.dataModel}
openEditor={this.openRoleEditor}
clearSelectionOnReload={false}
entryRenderIcon={this.renderListUserAvatar}
entryRenderFirstLine={this.renderListEntryFirstLine}
entryRenderSecondLine={this.renderListEntrySecondLine}
Expand Down
Expand Up @@ -54,6 +54,7 @@ let SimpleList = React.createClass({
tableKeys : React.PropTypes.object,
autoRefresh : React.PropTypes.number,
reloadAtCursor : React.PropTypes.bool,
clearSelectionOnReload: React.PropTypes.bool,
heightAutoWithMax : React.PropTypes.number,
containerHeight : React.PropTypes.number,
observeNodeReload : React.PropTypes.bool,
Expand Down Expand Up @@ -97,7 +98,7 @@ let SimpleList = React.createClass({
},

getDefaultProps:function(){
return {infiniteSliceCount:30}
return {infiniteSliceCount:30, clearSelectionOnReload: true}
},

clickRow: function(gridRow, event){
Expand Down Expand Up @@ -409,7 +410,9 @@ let SimpleList = React.createClass({
this.loadStartingAtCursor();
return;
}
this.props.dataModel.setSelectedNodes([]);
if(this.props.clearSelectionOnReload){
this.props.dataModel.setSelectedNodes([]);
}
this._loadingListener();
this.props.node.observeOnce("loaded", this._loadedListener);
this.props.node.reload();
Expand Down

0 comments on commit 93dc7f1

Please sign in to comment.