User registration is allowed and
<ng-template [ngIf]="userVideoQuota !== -1">
- this instance provides a baseline quota of {{ userVideoQuota | bytes }} space for the videos of its users.
+ this instance provides a baseline quota of {{ userVideoQuota | bytes: 0 }} space for the videos of its users.
</ng-template>
<ng-template [ngIf]="userVideoQuota === -1">
<div *ngIf="customCSS" [innerHTML]="customCSS"></div>
-<div>
+<div [ngClass]="{ 'user-logged-in': isUserLoggedIn(), 'user-not-logged-in': !isUserLoggedIn() }">
<div class="header">
<div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
this.authService.loadClientCredentials()
- if (this.authService.isLoggedIn()) {
+ if (this.isUserLoggedIn()) {
// The service will automatically redirect to the login page if the token is not valid anymore
this.authService.refreshUserInformation()
}
})
}
+ isUserLoggedIn () {
+ return this.authService.isLoggedIn()
+ }
+
toggleMenu () {
window.scrollTo(0, 0)
this.isMenuDisplayed = !this.isMenuDisplayed