From bc01017be99c8d8390f45f82e97ed506b9f1b6a6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 May 2019 16:57:43 +0200 Subject: [PATCH] Add ability to subscribe from the channel account page --- .../account-video-channels.component.html | 2 ++ client/src/sass/include/_miniature.scss | 2 ++ server/controllers/api/accounts.ts | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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 63f0514fd..25b74027e 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 @@ -9,6 +9,8 @@
{{ videoChannel.displayName }}
{{ videoChannel.followersCount }} subscribers
+ + diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index 3afcca310..0c2ee2d0d 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss @@ -156,6 +156,8 @@ $play-overlay-width: 18px; font-size: 24px; font-weight: $font-semibold; margin-bottom: 30px; + display: flex; + justify-content: space-between; a { &:hover, &:focus:not(.focus-visible), &:active { diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts index 9b3489120..5a1d652f2 100644 --- a/server/controllers/api/accounts.ts +++ b/server/controllers/api/accounts.ts @@ -117,7 +117,7 @@ async function listAccountChannels (req: express.Request, res: express.Response) accountId: res.locals.account.id, start: req.query.start, count: req.query.count, - sort: req.query.sort, + sort: req.query.sort } const resultList = await VideoChannelModel.listByAccount(options)