diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-21 09:40:57 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-21 09:40:57 +0100 |
commit | 29f9b56205f03c8a1da889fb451da12820d9262e (patch) | |
tree | 426760079a047e44905130d769f4849ca371c802 /client/src | |
parent | 9add00514f89e6e3eefc8f18174338088b9ab12e (diff) | |
download | PeerTube-29f9b56205f03c8a1da889fb451da12820d9262e.tar.gz PeerTube-29f9b56205f03c8a1da889fb451da12820d9262e.tar.zst PeerTube-29f9b56205f03c8a1da889fb451da12820d9262e.zip |
Logo/title redirects to the default route
Diffstat (limited to 'client/src')
-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 | ||