diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-29 17:12:18 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-29 17:12:18 +0200 |
commit | dc8902634864841be7ca483b8e1c0f5afa609c32 (patch) | |
tree | 3823727c0039ffe13508603db829a558fca00c9b /client/src/app/+accounts | |
parent | 8e8eb2614b4e6be90ea5cf2f7347f1eb40f28932 (diff) | |
download | PeerTube-dc8902634864841be7ca483b8e1c0f5afa609c32.tar.gz PeerTube-dc8902634864841be7ca483b8e1c0f5afa609c32.tar.zst PeerTube-dc8902634864841be7ca483b8e1c0f5afa609c32.zip |
Add show channel button in account page
Diffstat (limited to 'client/src/app/+accounts')
-rw-r--r-- | client/src/app/+accounts/account-video-channels/account-video-channels.component.html | 6 | ||||
-rw-r--r-- | client/src/app/+accounts/account-video-channels/account-video-channels.component.ts | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html index e9c8179b7..cb23bb522 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html | |||
@@ -5,7 +5,7 @@ | |||
5 | <div class="channels" myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true"> | 5 | <div class="channels" myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true"> |
6 | <div class="section channel" *ngFor="let videoChannel of videoChannels"> | 6 | <div class="section channel" *ngFor="let videoChannel of videoChannels"> |
7 | <div class="section-title"> | 7 | <div class="section-title"> |
8 | <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" i18n-title title="See this video channel"> | 8 | <a [routerLink]="getVideoChannelLink(videoChannel)" i18n-title title="See this video channel"> |
9 | <img [src]="videoChannel.avatarUrl" alt="Avatar" /> | 9 | <img [src]="videoChannel.avatarUrl" alt="Avatar" /> |
10 | 10 | ||
11 | <div>{{ videoChannel.displayName }}</div> | 11 | <div>{{ videoChannel.displayName }}</div> |
@@ -20,6 +20,10 @@ | |||
20 | 20 | ||
21 | <my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature> | 21 | <my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature> |
22 | </div> | 22 | </div> |
23 | |||
24 | <a class="show-more" i18n [routerLink]="getVideoChannelLink(videoChannel)"> | ||
25 | Show this channel | ||
26 | </a> | ||
23 | </div> | 27 | </div> |
24 | </div> | 28 | </div> |
25 | </div> | 29 | </div> |
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts index 4d07d653f..7144f4b5f 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts | |||
@@ -89,4 +89,8 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy { | |||
89 | 89 | ||
90 | this.loadMoreChannels() | 90 | this.loadMoreChannels() |
91 | } | 91 | } |
92 | |||
93 | getVideoChannelLink (videoChannel: VideoChannel) { | ||
94 | return [ '/video-channels', videoChannel.nameWithHost ] | ||
95 | } | ||
92 | } | 96 | } |