Add ability to subscribe from the channel account page

pull/1856/head
Chocobozzz 2019-05-29 16:57:43 +02:00
parent c8487f3f63
commit bc01017be9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,8 @@
<div>{{ videoChannel.displayName }}</div> <div>{{ videoChannel.displayName }}</div>
<div i18n class="followers">{{ videoChannel.followersCount }} subscribers</div> <div i18n class="followers">{{ videoChannel.followersCount }} subscribers</div>
</a> </a>
<my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
</div> </div>
<my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature> <my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>

View File

@ -156,6 +156,8 @@ $play-overlay-width: 18px;
font-size: 24px; font-size: 24px;
font-weight: $font-semibold; font-weight: $font-semibold;
margin-bottom: 30px; margin-bottom: 30px;
display: flex;
justify-content: space-between;
a { a {
&:hover, &:focus:not(.focus-visible), &:active { &:hover, &:focus:not(.focus-visible), &:active {

View File

@ -117,7 +117,7 @@ async function listAccountChannels (req: express.Request, res: express.Response)
accountId: res.locals.account.id, accountId: res.locals.account.id,
start: req.query.start, start: req.query.start,
count: req.query.count, count: req.query.count,
sort: req.query.sort, sort: req.query.sort
} }
const resultList = await VideoChannelModel.listByAccount(options) const resultList = await VideoChannelModel.listByAccount(options)