diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/app.component.html | 2 | ||||
-rw-r--r-- | client/src/app/app.component.ts | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html index 268fa84a6..3ac84d55a 100644 --- a/client/src/app/app.component.html +++ b/client/src/app/app.component.html | |||
@@ -6,7 +6,7 @@ | |||
6 | <div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }"> | 6 | <div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }"> |
7 | <span class="icon icon-menu" (click)="toggleMenu()"></span> | 7 | <span class="icon icon-menu" (click)="toggleMenu()"></span> |
8 | 8 | ||
9 | <a id="peertube-title" [routerLink]="['/videos/list']" title="Homepage"> | 9 | <a id="peertube-title" [routerLink]="defaultRoute" title="Homepage"> |
10 | <span class="icon icon-logo"></span> | 10 | <span class="icon icon-logo"></span> |
11 | <span class="instance-name">{{ instanceName }}</span> | 11 | <span class="instance-name">{{ instanceName }}</span> |
12 | </a> | 12 | </a> |
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 84435b5db..b9f7be48c 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -43,6 +43,10 @@ export class AppComponent implements OnInit { | |||
43 | return this.serverService.getConfig().instance.name | 43 | return this.serverService.getConfig().instance.name |
44 | } | 44 | } |
45 | 45 | ||
46 | get defaultRoute () { | ||
47 | return RedirectService.DEFAULT_ROUTE | ||
48 | } | ||
49 | |||
46 | ngOnInit () { | 50 | ngOnInit () { |
47 | document.getElementById('incompatible-browser').className += ' browser-ok' | 51 | document.getElementById('incompatible-browser').className += ' browser-ok' |
48 | 52 | ||