diff --git a/frontend_v2/src/app/components/publiclists/publiclists.component.html b/frontend_v2/src/app/components/publiclists/publiclists.component.html index ae92d8104b..7e691924c8 100644 --- a/frontend_v2/src/app/components/publiclists/publiclists.component.html +++ b/frontend_v2/src/app/components/publiclists/publiclists.component.html @@ -1,13 +1,13 @@ - + -
+
- +
- + diff --git a/frontend_v2/src/app/components/publiclists/publiclists.component.ts b/frontend_v2/src/app/components/publiclists/publiclists.component.ts index bd4c45535d..cdee30625d 100644 --- a/frontend_v2/src/app/components/publiclists/publiclists.component.ts +++ b/frontend_v2/src/app/components/publiclists/publiclists.component.ts @@ -12,7 +12,7 @@ import { AuthService } from '../../services/auth.service'; templateUrl: './publiclists.component.html', styleUrls: ['./publiclists.component.scss'], }) -export class PubliclistsComponent implements AfterViewChecked { +export class PubliclistsComponent implements OnInit, AfterViewChecked { isAuth = false; @@ -32,7 +32,13 @@ export class PubliclistsComponent implements AfterViewChecked { private globalService: GlobalService, private cdRef : ChangeDetectorRef ) {} - + + /** + * Component on Initialization. + */ + ngOnInit() { + this.isAuth = this.authService.isAuth; + } /** * DEV MODE: * For resolving change in expression value after it is checked