1
0
Fork 0

Logo/title redirects to the default route

This commit is contained in:
Chocobozzz 2018-03-21 09:40:57 +01:00
parent 9add00514f
commit 29f9b56205
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
<span class="icon icon-menu" (click)="toggleMenu()"></span>
<a id="peertube-title" [routerLink]="['/videos/list']" title="Homepage">
<a id="peertube-title" [routerLink]="defaultRoute" title="Homepage">
<span class="icon icon-logo"></span>
<span class="instance-name">{{ instanceName }}</span>
</a>

View File

@ -43,6 +43,10 @@ export class AppComponent implements OnInit {
return this.serverService.getConfig().instance.name
}
get defaultRoute () {
return RedirectService.DEFAULT_ROUTE
}
ngOnInit () {
document.getElementById('incompatible-browser').className += ' browser-ok'