import { Component, OnInit } from '@angular/core'
import { ConfirmService, Notifier } from '@app/core'
-import { SortMeta } from 'primeng/primeng'
+import { SortMeta } from 'primeng/api'
import { ActorFollow } from '../../../../../../shared/models/actors/follow.model'
import { RestPagination, RestTable } from '../../../shared'
import { FollowService } from '@app/shared/instance/follow.service'
this.initialize()
}
+ getIdentifier () {
+ return 'FollowersListComponent'
+ }
+
acceptFollower (follow: ActorFollow) {
follow.state = 'accepted'
}
protected loadData () {
- this.followService.getFollowers(this.pagination, this.sort, this.search)
+ this.followService.getFollowers({ pagination: this.pagination, sort: this.sort, search: this.search })
.subscribe(
resultList => {
this.followers = resultList.data