Skip to content

Commit f5deecb

Browse files
committed
refactor(client:navbar): refactor to use new sync auth methods
1 parent 71b97df commit f5deecb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class NavbarComponent {
66
'title': 'Home',
77
<% if (filters.uirouter) { %>'state': 'main'<% } else { %>'link': '/'<% } %>
88
}];
9-
9+
1010
isCollapsed = true;
1111
//end-non-standard
1212
<%_ if(filters.ngroute || filters.auth) { _%>
@@ -17,9 +17,9 @@ export class NavbarComponent {
1717
this.$location = $location;
1818
<%_ } _%>
1919
<%_ if (filters.auth) { _%>
20-
this.isLoggedIn = Auth.isLoggedIn;
21-
this.isAdmin = Auth.isAdmin;
22-
this.getCurrentUser = Auth.getCurrentUser;
20+
this.isLoggedIn = Auth.isLoggedInSync;
21+
this.isAdmin = Auth.isAdminSync;
22+
this.getCurrentUser = Auth.getCurrentUserSync;
2323
<%_ } _%>
2424
}<% } %>
2525
<%_ if(!filters.uirouter) { _%>

0 commit comments

Comments
 (0)