diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-01-23 13:12:49 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-01-26 09:25:32 +0100 |
commit | a1ba71cb289f51dfc271408ff3577e14fb74338d (patch) | |
tree | 962b8609db7041064d9f71f92b2566713fff8575 /server/sonar-web/src/main/js/nav/global-navbar-view.js | |
parent | 7d09b43edee2aee10127e9f2f6a33f027bbb975d (diff) | |
download | sonarqube-a1ba71cb289f51dfc271408ff3577e14fb74338d.tar.gz sonarqube-a1ba71cb289f51dfc271408ff3577e14fb74338d.zip |
SONAR-6041 update nav
Diffstat (limited to 'server/sonar-web/src/main/js/nav/global-navbar-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/nav/global-navbar-view.js | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/nav/global-navbar-view.js b/server/sonar-web/src/main/js/nav/global-navbar-view.js index e87ecc6d3f7..7acb3ab2a9a 100644 --- a/server/sonar-web/src/main/js/nav/global-navbar-view.js +++ b/server/sonar-web/src/main/js/nav/global-navbar-view.js @@ -19,12 +19,6 @@ define([ 'hidden.bs.dropdown .js-search-dropdown': 'onSearchDropdownHidden' }, - initialize: function () { - this.projectName = window.navbarProject; - this.projectKey = window.navbarProjectKey; - this.isProjectFavorite = window.navbarProjectFavorite; - }, - onRender: function () { var that = this; this.$el.addClass('navbar-' + window.navbarSpace); @@ -56,6 +50,7 @@ define([ onSearchDropdownShow: function () { var that = this; this.searchRegion.show(new SearchView({ + model: this.model, hide: function () { that.$('.js-search-dropdown-toggle').dropdown('toggle'); } @@ -72,10 +67,9 @@ define([ userName: window.SS.userName, isUserAdmin: window.SS.isUserAdmin, - projectName: this.projectName, - projectKey: this.projectKey, - projectFavorite: this.isProjectFavorite, - navbarCanFavoriteProject: window.navbarCanFavoriteProject + canManageGlobalDashboards: window.SS.user != null, + canManageIssueFilters: window.SS.user != null, + canManageMeasureFilters: window.SS.user != null }); } }); |