File tree 1 file changed +10
-4
lines changed
templates/app/client/components/navbar
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,19 @@ class NavbarController {
9
9
10
10
isCollapsed = true ;
11
11
//end-non-standard
12
+ < % _ if ( filters . ngroute || filters . auth ) { _ % >
12
13
13
- constructor ( < % if ( ! filters . uirouter ) { % > $location < % } if ( ! filters . uirouter && filters . auth ) { % > , < % } if ( filters . auth ) { % > Auth < % } % > ) { < % if ( ! filters . uirouter ) { % >
14
- this . $location = $location ; < % } % >
15
- < % if ( filters . auth ) { % > this . isLoggedIn = Auth . isLoggedIn ;
14
+ constructor ( < % if ( ! filters . uirouter ) { % > $location < % } if ( ! filters . uirouter && filters . auth ) { % > , < % } if ( filters . auth ) { % > Auth < % } % > ) {
15
+ < % _ if ( ! filters . uirouter ) { _ % >
16
+ this . $location = $location ;
17
+ < % _ } _ % >
18
+ < % _ if ( filters . auth ) { _ % >
19
+ this . isLoggedIn = Auth . isLoggedIn ;
16
20
this . isAdmin = Auth . isAdmin ;
17
21
this . getCurrentUser = Auth . getCurrentUser ;
18
- < % } % > } < % if ( ! filters . uirouter ) { % >
22
+ < % _ } _ % >
23
+ } < % } % >
24
+ < % _ if ( ! filters . uirouter ) { _ % >
19
25
20
26
isActive(route) {
21
27
return route === this . $location . path ( ) ;
You can’t perform that action at this time.
0 commit comments