Skip to content

Commit 4b59e1f

Browse files
committed
fix(navbar): fix controller constructor with ng-route + auth
add a comma if both conditions pass closes #1462
1 parent dc3295e commit 4b59e1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/templates/client/components/navbar/navbar.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class NavbarController {
1010
isCollapsed = true;
1111
//end-non-standard
1212

13-
constructor(<% if(!filters.uirouter) { %>$location<% } %><% if (filters.auth) { %>Auth<% } %>) {<% if(!filters.uirouter) { %>
13+
constructor(<% if(!filters.uirouter) { %>$location<% } if(!filters.uirouter && filters.auth) { %>, <% } if (filters.auth) { %>Auth<% } %>) {<% if(!filters.uirouter) { %>
1414
this.$location = $location;<% } %>
1515
<% if (filters.auth) { %>this.isLoggedIn = Auth.isLoggedIn;
1616
this.isAdmin = Auth.isAdmin;

0 commit comments

Comments
 (0)