diff options
Diffstat (limited to 'client/src/app/+admin/follows')
3 files changed, 7 insertions, 5 deletions
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.ts b/client/src/app/+admin/follows/followers-list/followers-list.component.ts index 6dd64fc57..cebb2e1a2 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.ts +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.ts | |||
@@ -140,7 +140,7 @@ export class FollowersListComponent extends RestTable <ActorFollow> implements O | |||
140 | return follow.follower.name + '@' + follow.follower.host | 140 | return follow.follower.name + '@' + follow.follower.host |
141 | } | 141 | } |
142 | 142 | ||
143 | protected reloadData () { | 143 | protected reloadDataInternal () { |
144 | this.followService.getFollowers({ pagination: this.pagination, sort: this.sort, search: this.search }) | 144 | this.followService.getFollowers({ pagination: this.pagination, sort: this.sort, search: this.search }) |
145 | .subscribe({ | 145 | .subscribe({ |
146 | next: resultList => { | 146 | next: resultList => { |
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.ts b/client/src/app/+admin/follows/following-list/following-list.component.ts index e986a610a..71f2fbe66 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.ts +++ b/client/src/app/+admin/follows/following-list/following-list.component.ts | |||
@@ -62,8 +62,10 @@ export class FollowingListComponent extends RestTable <ActorFollow> implements O | |||
62 | } | 62 | } |
63 | 63 | ||
64 | async removeFollowing (follows: ActorFollow[]) { | 64 | async removeFollowing (follows: ActorFollow[]) { |
65 | const icuParams = { count: follows.length, entryName: this.buildFollowingName(follows[0]) } | ||
66 | |||
65 | const message = prepareIcu($localize`Do you really want to unfollow {count, plural, =1 {{entryName}?} other {{count} entries?}}`)( | 67 | const message = prepareIcu($localize`Do you really want to unfollow {count, plural, =1 {{entryName}?} other {{count} entries?}}`)( |
66 | { count: follows.length, entryName: this.buildFollowingName(follows[0]) }, | 68 | icuParams, |
67 | $localize`Do you really want to unfollow these entries?` | 69 | $localize`Do you really want to unfollow these entries?` |
68 | ) | 70 | ) |
69 | 71 | ||
@@ -75,7 +77,7 @@ export class FollowingListComponent extends RestTable <ActorFollow> implements O | |||
75 | next: () => { | 77 | next: () => { |
76 | // eslint-disable-next-line max-len | 78 | // eslint-disable-next-line max-len |
77 | const message = prepareIcu($localize`You are not following {count, plural, =1 {{entryName} anymore.} other {these {count} entries anymore.}}`)( | 79 | const message = prepareIcu($localize`You are not following {count, plural, =1 {{entryName} anymore.} other {these {count} entries anymore.}}`)( |
78 | { count: follows.length, entryName: this.buildFollowingName(follows[0]) }, | 80 | icuParams, |
79 | $localize`You are not following them anymore.` | 81 | $localize`You are not following them anymore.` |
80 | ) | 82 | ) |
81 | 83 | ||
@@ -87,7 +89,7 @@ export class FollowingListComponent extends RestTable <ActorFollow> implements O | |||
87 | }) | 89 | }) |
88 | } | 90 | } |
89 | 91 | ||
90 | protected reloadData () { | 92 | protected reloadDataInternal () { |
91 | this.followService.getFollowing({ pagination: this.pagination, sort: this.sort, search: this.search }) | 93 | this.followService.getFollowing({ pagination: this.pagination, sort: this.sort, search: this.search }) |
92 | .subscribe({ | 94 | .subscribe({ |
93 | next: resultList => { | 95 | next: resultList => { |
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts index a89603048..b31c5b35e 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts | |||
@@ -162,7 +162,7 @@ export class VideoRedundanciesListComponent extends RestTable implements OnInit | |||
162 | 162 | ||
163 | } | 163 | } |
164 | 164 | ||
165 | protected reloadData () { | 165 | protected reloadDataInternal () { |
166 | const options = { | 166 | const options = { |
167 | pagination: this.pagination, | 167 | pagination: this.pagination, |
168 | sort: this.sort, | 168 | sort: this.sort, |