aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/global-permissions/groups-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/global-permissions/groups-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/global-permissions/groups-view.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/global-permissions/groups-view.js b/server/sonar-web/src/main/js/apps/global-permissions/groups-view.js
index c29c1eeba85..eebc1249772 100644
--- a/server/sonar-web/src/main/js/apps/global-permissions/groups-view.js
+++ b/server/sonar-web/src/main/js/apps/global-permissions/groups-view.js
@@ -22,7 +22,7 @@ import Template from './templates/global-permissions-groups.hbs';
import '../../components/SelectList';
function getSearchUrl (permission, project) {
- var url = '/api/permissions/groups?ps=100&permission=' + permission;
+ let url = '/api/permissions/groups?ps=100&permission=' + permission;
if (project) {
url = url + '&projectId=' + project;
}
@@ -30,7 +30,7 @@ function getSearchUrl (permission, project) {
}
function getExtra (permission, project) {
- var extra = { permission: permission };
+ const extra = { permission };
if (project) {
extra.projectId = project;
}
@@ -40,14 +40,14 @@ function getExtra (permission, project) {
export default Modal.extend({
template: Template,
- onRender: function () {
+ onRender () {
Modal.prototype.onRender.apply(this, arguments);
new window.SelectList({
el: this.$('#global-permissions-groups'),
width: '100%',
readOnly: false,
focusSearch: false,
- format: function (item) {
+ format (item) {
return item.name;
},
queryParam: 'q',
@@ -57,14 +57,14 @@ export default Modal.extend({
extra: getExtra(this.options.permission, this.options.project),
selectParameter: 'groupName',
selectParameterValue: 'name',
- parse: function (r) {
+ parse (r) {
this.more = false;
return r.groups;
}
});
},
- onDestroy: function () {
+ onDestroy () {
this.options.refresh();
Modal.prototype.onDestroy.apply(this, arguments);
}