Add ability to subscribe from the channel account page
authorChocobozzz <me@florianbigard.com>
Wed, 29 May 2019 14:57:43 +0000 (16:57 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 29 May 2019 15:00:40 +0000 (17:00 +0200)
client/src/app/+accounts/account-video-channels/account-video-channels.component.html
client/src/sass/include/_miniature.scss
server/controllers/api/accounts.ts

index 63f0514fd0b5137e0e84e2ba8244e37fcfd7d9d4..25b74027ecb78e5ef6f7169ee2a54368c223f484 100644 (file)
@@ -9,6 +9,8 @@
           <div>{{ videoChannel.displayName }}</div>
           <div i18n class="followers">{{ videoChannel.followersCount }} subscribers</div>
         </a>
+
+        <my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
       </div>
 
       <my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
index 3afcca310fc883a7c2def8f0a2c491eabe4c4a72..0c2ee2d0d00a52f5db69cb58ec6f2ba1d471dd7f 100644 (file)
@@ -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 {
index 9b3489120521b60bc38a91c79483aabea9e88edd..5a1d652f237ec98c8ae178b40fe8bf4f0f5a3da2 100644 (file)
@@ -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)