diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2017-02-22 09:32:55 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2017-02-23 18:32:24 +0100 |
commit | d26ecc872afbded64666a266529affdcbb0557ad (patch) | |
tree | 0bfbcfe49898cb8711ce81a858c2dd4c82d6c081 /server/sonar-web/src/main/js/apps/permission-templates | |
parent | d47bf478c722a1dd4a3c57e235a4544df3ddc7c3 (diff) | |
download | sonarqube-d26ecc872afbded64666a266529affdcbb0557ad.tar.gz sonarqube-d26ecc872afbded64666a266529affdcbb0557ad.zip |
fix indentation
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permission-templates')
10 files changed, 41 insertions, 41 deletions
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/ActionsCell.js b/server/sonar-web/src/main/js/apps/permission-templates/components/ActionsCell.js index 8e73b76f64f..2119972b66e 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/ActionsCell.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/ActionsCell.js @@ -69,8 +69,8 @@ export default class ActionsCell extends React.Component { setDefault (qualifier, e) { e.preventDefault(); setDefaultPermissionTemplate( - this.props.permissionTemplate.id, - qualifier + this.props.permissionTemplate.id, + qualifier ).then(this.props.refresh); } @@ -122,7 +122,7 @@ export default class ActionsCell extends React.Component { renderIfSingleTopQualifier (availableQualifiers) { return availableQualifiers.map(qualifier => ( this.renderSetDefaultLink(qualifier, ( - <span>{translate('permission_templates.set_default')}</span> + <span>{translate('permission_templates.set_default')}</span> ))) ); } @@ -130,7 +130,7 @@ export default class ActionsCell extends React.Component { renderIfMultipleTopQualifiers (availableQualifiers) { return availableQualifiers.map(qualifier => ( this.renderSetDefaultLink(qualifier, ( - <span> + <span> {translate('permission_templates.set_default_for')} {' '} <QualifierIcon qualifier={qualifier}/> diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/App.js b/server/sonar-web/src/main/js/apps/permission-templates/components/App.js index 3502b83d4a0..0bf2c2fa669 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/App.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/App.js @@ -61,8 +61,8 @@ export default class App extends React.Component { if (this.mounted) { const permissions = sortPermissions(r.permissions); const permissionTemplates = mergeDefaultsToTemplates( - mergePermissionsToTemplates(r.permissionTemplates, permissions), - r.defaultTemplates + mergePermissionsToTemplates(r.permissionTemplates, permissions), + r.defaultTemplates ); this.setState({ ready: true, diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/AppContainer.js b/server/sonar-web/src/main/js/apps/permission-templates/components/AppContainer.js index e085e38a1d3..4a62e4c7c7a 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/AppContainer.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/AppContainer.js @@ -27,5 +27,5 @@ const mapStateToProps = state => ({ }); export default connect( - mapStateToProps + mapStateToProps )(App); diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/List.js b/server/sonar-web/src/main/js/apps/permission-templates/components/List.js index e36666005d7..30d2de1feb0 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/List.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/List.js @@ -26,7 +26,7 @@ export default class List extends React.Component { static propTypes = { organization: React.PropTypes.object, permissionTemplates: React.PropTypes.arrayOf( - PermissionTemplateType).isRequired, + PermissionTemplateType).isRequired, permissions: React.PropTypes.array.isRequired, topQualifiers: React.PropTypes.array.isRequired, refresh: CallbackType diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/Template.js b/server/sonar-web/src/main/js/apps/permission-templates/components/Template.js index 099ac2ccc6c..2ee080765c7 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/Template.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/Template.js @@ -67,14 +67,14 @@ class Template extends React.Component { if (filter !== 'groups') { requests.push(api.getPermissionTemplateUsers( - template.id, finalQuery, selectedPermission)); + template.id, finalQuery, selectedPermission)); } else { requests.push(Promise.resolve([])); } if (filter !== 'users') { requests.push(api.getPermissionTemplateGroups( - template.id, finalQuery, selectedPermission)); + template.id, finalQuery, selectedPermission)); } else { requests.push(Promise.resolve([])); } @@ -97,9 +97,9 @@ class Template extends React.Component { const hasPermission = user.permissions.includes(permission); const request = hasPermission ? api.revokeTemplatePermissionFromUser( - template.id, user.login, permission) : + template.id, user.login, permission) : api.grantTemplatePermissionToUser( - template.id, user.login, permission); + template.id, user.login, permission); request.then(() => this.requestHolders()).then(this.props.refresh); } diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/ActionsCell-test.js b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/ActionsCell-test.js index 0204d186524..c2e83d5c093 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/ActionsCell-test.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/ActionsCell-test.js @@ -30,7 +30,7 @@ const SAMPLE = { function renderActionsCell (props) { return shallow( - <ActionsCell + <ActionsCell permissionTemplate={SAMPLE} topQualifiers={['TRK', 'VW']} refresh={() => true} diff --git a/server/sonar-web/src/main/js/apps/permission-templates/views/CreateView.js b/server/sonar-web/src/main/js/apps/permission-templates/views/CreateView.js index e68ba050cc4..f46d91ca715 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/views/CreateView.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/views/CreateView.js @@ -33,14 +33,14 @@ export default FormView.extend({ Object.assign(data, { organization: this.options.organization.key }); } createPermissionTemplate(data).then( - r => { - this.trigger('done', r); - this.destroy(); - }, - e => { - this.enableForm(); - parseError(e).then(message => this.showSingleError(message)); - } + r => { + this.trigger('done', r); + this.destroy(); + }, + e => { + this.enableForm(); + parseError(e).then(message => this.showSingleError(message)); + } ); } }); diff --git a/server/sonar-web/src/main/js/apps/permission-templates/views/DeleteView.js b/server/sonar-web/src/main/js/apps/permission-templates/views/DeleteView.js index 1386d682372..b1a7f1f30da 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/views/DeleteView.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/views/DeleteView.js @@ -32,14 +32,14 @@ export default ModalForm.extend({ sendRequest () { deletePermissionTemplate({ templateId: this.model.id }).then( - () => { - this.trigger('done'); - this.destroy(); - }, - e => { - this.enableForm(); - parseError(e).then(message => this.showSingleError(message)); - } + () => { + this.trigger('done'); + this.destroy(); + }, + e => { + this.enableForm(); + parseError(e).then(message => this.showSingleError(message)); + } ); } }); diff --git a/server/sonar-web/src/main/js/apps/permission-templates/views/UpdateView.js b/server/sonar-web/src/main/js/apps/permission-templates/views/UpdateView.js index 39f41950491..094feb677d8 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/views/UpdateView.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/views/UpdateView.js @@ -30,14 +30,14 @@ export default FormView.extend({ description: this.$('#permission-template-description').val(), projectKeyPattern: this.$('#permission-template-project-key-pattern').val() }).then( - () => { - this.options.refresh(); - this.destroy(); - }, - e => { - this.enableForm(); - parseError(e).then(message => this.showSingleError(message)); - } + () => { + this.options.refresh(); + this.destroy(); + }, + e => { + this.enableForm(); + parseError(e).then(message => this.showSingleError(message)); + } ); } }); diff --git a/server/sonar-web/src/main/js/apps/permission-templates/views/UsersView.js b/server/sonar-web/src/main/js/apps/permission-templates/views/UsersView.js index 75304fa9a08..ee25cb2fa23 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/views/UsersView.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/views/UsersView.js @@ -39,12 +39,12 @@ export default Modal.extend({ const checked = this.$('#grant-to-project-creators').is(':checked'); if (checked) { addProjectCreatorToTemplate( - this.options.permissionTemplate.name, - this.options.permission.key); + this.options.permissionTemplate.name, + this.options.permission.key); } else { removeProjectCreatorFromTemplate( - this.options.permissionTemplate.name, - this.options.permission.key); + this.options.permissionTemplate.name, + this.options.permission.key); } }, |