File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
22
User registration is allowed and
23
23
24
24
< ng-template [ngIf] ="userVideoQuota !== -1 ">
25
- this instance provides a baseline quota of {{ userVideoQuota | bytes }} space for the videos of its users.
25
+ this instance provides a baseline quota of {{ userVideoQuota | bytes: 0 }} space for the videos of its users.
26
26
</ ng-template >
27
27
28
28
< ng-template [ngIf] ="userVideoQuota === -1 ">
Original file line number Diff line number Diff line change 1
1
< div *ngIf ="customCSS " [innerHTML] ="customCSS "> </ div >
2
2
3
- < div >
3
+ < div [ngClass] =" { 'user-logged-in': isUserLoggedIn(), 'user-not-logged-in': !isUserLoggedIn() } " >
4
4
< div class ="header ">
5
5
6
6
< div class ="top-left-block " [ngClass] ="{ 'border-bottom': isMenuDisplayed === false } ">
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export class AppComponent implements OnInit {
57
57
58
58
this . authService . loadClientCredentials ( )
59
59
60
- if ( this . authService . isLoggedIn ( ) ) {
60
+ if ( this . isUserLoggedIn ( ) ) {
61
61
// The service will automatically redirect to the login page if the token is not valid anymore
62
62
this . authService . refreshUserInformation ( )
63
63
}
@@ -104,6 +104,10 @@ export class AppComponent implements OnInit {
104
104
} )
105
105
}
106
106
107
+ isUserLoggedIn ( ) {
108
+ return this . authService . isLoggedIn ( )
109
+ }
110
+
107
111
toggleMenu ( ) {
108
112
window . scrollTo ( 0 , 0 )
109
113
this . isMenuDisplayed = ! this . isMenuDisplayed
You can’t perform that action at this time.
0 commit comments