blob: 7a38d84c0a612f5d38dfac088f125c84f6e7e05e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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();
}
});
|