export class SubscribeButtonComponent implements OnInit {
@Input() videoChannel: VideoChannel
@Input() displayFollowers = false
+ @Input() size: 'small' | 'normal' = 'normal'
subscribed: boolean
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)
)