aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users/app.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-03-30 10:09:32 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-03-30 13:11:11 +0200
commit737b9fdfcc2cd876c34620a9cc228fe760366c7b (patch)
tree98aac8ed5536d5c227ef131c61e00cfbbd9c3d15 /server/sonar-web/src/main/js/apps/users/app.js
parent0c1c2ec4c0a6185b3c40782661078c2e581eb545 (diff)
downloadsonarqube-737b9fdfcc2cd876c34620a9cc228fe760366c7b.tar.gz
sonarqube-737b9fdfcc2cd876c34620a9cc228fe760366c7b.zip
SONAR-7238 Display external identity information on user
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/app.js')
-rw-r--r--server/sonar-web/src/main/js/apps/users/app.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/app.js b/server/sonar-web/src/main/js/apps/users/app.js
index f8d25051478..fcbe54cafb8 100644
--- a/server/sonar-web/src/main/js/apps/users/app.js
+++ b/server/sonar-web/src/main/js/apps/users/app.js
@@ -18,15 +18,18 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import Marionette from 'backbone.marionette';
+
import Layout from './layout';
import Users from './users';
import HeaderView from './header-view';
import SearchView from './search-view';
import ListView from './list-view';
import ListFooterView from './list-footer-view';
+import { getIdentityProviders } from '../../api/users';
const App = new Marionette.Application();
-const init = function () {
+
+const init = function (providers) {
const options = window.sonarqube;
// Layout
@@ -45,7 +48,7 @@ const init = function () {
this.layout.searchRegion.show(this.searchView);
// List View
- this.listView = new ListView({ collection: this.users });
+ this.listView = new ListView({ collection: this.users, providers });
this.layout.listRegion.show(this.listView);
// List Footer View
@@ -57,7 +60,7 @@ const init = function () {
};
App.on('start', function () {
- init.call(App);
+ getIdentityProviders().then(r => init.call(App, r.identityProviders));
});
window.sonarqube.appStarted.then(options => App.start(options));