From 3aa4e0789f603f3c579a5f0184fa024afd3792fa Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 1 Oct 2015 12:06:21 +0200 Subject: SONAR-6848 Merge the "Bulk Deletion" and "Provisioning" pages --- server/sonar-web/src/main/js/apps/projects/app.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 server/sonar-web/src/main/js/apps/projects/app.js (limited to 'server/sonar-web/src/main/js/apps/projects/app.js') diff --git a/server/sonar-web/src/main/js/apps/projects/app.js b/server/sonar-web/src/main/js/apps/projects/app.js new file mode 100644 index 00000000000..8e98bb1686b --- /dev/null +++ b/server/sonar-web/src/main/js/apps/projects/app.js @@ -0,0 +1,21 @@ +import $ from 'jquery'; +import React from 'react'; +import Main from './main'; +import {getCurrentUser} from '../../api/users'; +import {getGlobalNavigation} from '../../api/nav'; + +export default { + start(options) { + $.when( + getCurrentUser(), + getGlobalNavigation(), + window.requestMessages() + ).then((user, nav) => { + let el = document.querySelector(options.el), + hasProvisionPermission = user[0].permissions.global.indexOf('provisioning') !== -1, + topLevelQualifiers = nav[0].qualifiers; + React.render(
, el); + }); + } +}; -- cgit v1.2.3