X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2Fshared%2Fuser-subscription%2Fsubscribe-button.component.ts;h=ba7acf69adf7ef9c0086cc4c8790444dd1709823;hb=f37dc0dd14d9ce0b59c454c2c1b935fcbe9727e9;hp=46d6dbaf7f861253e72b611fce629007ccc8dc27;hpb=240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.ts b/client/src/app/shared/user-subscription/subscribe-button.component.ts index 46d6dbaf7..ba7acf69a 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.ts +++ b/client/src/app/shared/user-subscription/subscribe-button.component.ts @@ -15,6 +15,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill' export class SubscribeButtonComponent implements OnInit { @Input() videoChannel: VideoChannel @Input() displayFollowers = false + @Input() size: 'small' | 'normal' = 'normal' subscribed: boolean @@ -34,7 +35,7 @@ export class SubscribeButtonComponent implements OnInit { ngOnInit () { this.userSubscriptionService.isSubscriptionExists(this.uri) .subscribe( - exists => this.subscribed = exists, + res => this.subscribed = res[this.uri], err => this.notificationsService.error(this.i18n('Error'), err.message) )