diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/global-permissions/permission-groups.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/global-permissions/permission-groups.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/global-permissions/permission-groups.js b/server/sonar-web/src/main/js/apps/global-permissions/permission-groups.js new file mode 100644 index 00000000000..7a38d84c0a6 --- /dev/null +++ b/server/sonar-web/src/main/js/apps/global-permissions/permission-groups.js @@ -0,0 +1,34 @@ +import React from 'react'; +import PermissionsUsersGroupsMixin from './permission-users-groups-mixin'; +import GroupsView from './groups-view'; + +export default React.createClass({ + mixins: [PermissionsUsersGroupsMixin], + + renderUpdateLink() { + return ( + <a onClick={this.updateGroups} + className="icon-bullet-list" + title="Update Groups" + data-toggle="tooltip" + href="#"></a> + ); + }, + + renderItem(item) { + return item.name; + }, + + renderTitle() { + return 'Groups'; + }, + + updateGroups(e) { + e.preventDefault(); + new GroupsView({ + permission: this.props.permission.key, + project: this.props.project, + refresh: this.props.refresh + }).render(); + } +}); |