diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/app.js | 8 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/main.js | 4 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/search.js | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/app.js b/server/sonar-web/src/main/js/apps/projects/app.js index 627a8a9b9cd..aba9a066b50 100644 --- a/server/sonar-web/src/main/js/apps/projects/app.js +++ b/server/sonar-web/src/main/js/apps/projects/app.js @@ -1,14 +1,14 @@ import React from 'react'; import ReactDOM from 'react-dom'; import Main from './main'; -import {getCurrentUser} from '../../api/users'; +import { getCurrentUser } from '../../api/users'; import '../../helpers/handlebars-helpers'; window.sonarqube.appStarted.then(options => { getCurrentUser().done(user => { - let el = document.querySelector(options.el), - hasProvisionPermission = user.permissions.global.indexOf('provisioning') !== -1, - topLevelQualifiers = options.rootQualifiers; + let el = document.querySelector(options.el); + let hasProvisionPermission = user.permissions.global.indexOf('provisioning') !== -1; + let topLevelQualifiers = options.rootQualifiers; ReactDOM.render(<Main hasProvisionPermission={hasProvisionPermission} topLevelQualifiers={topLevelQualifiers}/>, el); }); diff --git a/server/sonar-web/src/main/js/apps/projects/main.js b/server/sonar-web/src/main/js/apps/projects/main.js index 051de7c515a..b415414911a 100644 --- a/server/sonar-web/src/main/js/apps/projects/main.js +++ b/server/sonar-web/src/main/js/apps/projects/main.js @@ -3,8 +3,8 @@ import React from 'react'; import Header from './header'; import Search from './search'; import Projects from './projects'; -import {PAGE_SIZE, TYPE} from './constants'; -import {getComponents, getProvisioned, getGhosts, deleteComponents} from '../../api/components'; +import { PAGE_SIZE, TYPE } from './constants'; +import { getComponents, getProvisioned, getGhosts, deleteComponents } from '../../api/components'; import ListFooter from '../../components/shared/list-footer'; export default React.createClass({ diff --git a/server/sonar-web/src/main/js/apps/projects/search.js b/server/sonar-web/src/main/js/apps/projects/search.js index c07450d93ca..4d465b3665e 100644 --- a/server/sonar-web/src/main/js/apps/projects/search.js +++ b/server/sonar-web/src/main/js/apps/projects/search.js @@ -1,6 +1,6 @@ import _ from 'underscore'; import React from 'react'; -import {TYPE, QUALIFIERS_ORDER} from './constants'; +import { TYPE, QUALIFIERS_ORDER } from './constants'; import DeleteView from './delete-view'; import RadioToggle from '../../components/shared/radio-toggle'; import Checkbox from '../../components/shared/checkbox'; @@ -39,11 +39,11 @@ export default React.createClass({ renderCheckbox() { let isAllChecked = this.props.projects.length > 0 && - this.props.selection.length === this.props.projects.length, - thirdState = this.props.projects.length > 0 && + this.props.selection.length === this.props.projects.length; + let thirdState = this.props.projects.length > 0 && this.props.selection.length > 0 && - this.props.selection.length < this.props.projects.length, - isChecked = isAllChecked || thirdState; + this.props.selection.length < this.props.projects.length; + let isChecked = isAllChecked || thirdState; return <Checkbox onCheck={this.onCheck} initiallyChecked={isChecked} thirdState={thirdState}/>; }, |