|
|
@@ -46,6 +46,7 @@ class GrantSelector extends React.Component {
|
|
|
// retrieve xss library from window
|
|
|
this.xss = window.xss;
|
|
|
|
|
|
+ this.getCurrentOptionsToSave = this.getCurrentOptionsToSave.bind(this);
|
|
|
this.showSelectGroupModal = this.showSelectGroupModal.bind(this);
|
|
|
this.hideSelectGroupModal = this.hideSelectGroupModal.bind(this);
|
|
|
|
|
|
@@ -74,6 +75,16 @@ class GrantSelector extends React.Component {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ getCurrentOptionsToSave() {
|
|
|
+ const options = {
|
|
|
+ grant: this.state.pageGrant
|
|
|
+ };
|
|
|
+ if (this.state.pageGrantGroup != null) {
|
|
|
+ options.grantGroup = this.state.pageGrantGroup._id;
|
|
|
+ }
|
|
|
+ return options;
|
|
|
+ }
|
|
|
+
|
|
|
showSelectGroupModal() {
|
|
|
this.retrieveUserGroupRelations();
|
|
|
this.setState({ isSelectGroupModalShown: true });
|