]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8300 open favorite projects for authenticated users
authorStas Vilchik <vilchiks@gmail.com>
Thu, 3 Nov 2016 15:15:50 +0000 (16:15 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 4 Nov 2016 08:08:46 +0000 (09:08 +0100)
server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js

index 1b00795944e5835217aa73bc577788548851f32d..c9707bd89b68370d41cd6b9c2b3984c2c158eef1 100644 (file)
@@ -30,7 +30,8 @@ export default React.createClass({
   },
 
   renderProjects () {
-    const url = window.baseUrl + '/projects';
+    const controller = window.SS.user ? '/projects/favorite' : '/projects';
+    const url = window.baseUrl + controller;
     return (
         <li className={this.activeLink('/projects')}>
           <a href={url}>{translate('projects.page')}</a>