diff options
Diffstat (limited to 'client/src/app/+admin')
9 files changed, 36 insertions, 0 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 707daef84..aff59a691 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 | |||
@@ -31,6 +31,10 @@ export class FollowersListComponent extends RestTable implements OnInit { | |||
31 | this.initialize() | 31 | this.initialize() |
32 | } | 32 | } |
33 | 33 | ||
34 | getIdentifier () { | ||
35 | return 'FollowersListComponent' | ||
36 | } | ||
37 | |||
34 | acceptFollower (follow: ActorFollow) { | 38 | acceptFollower (follow: ActorFollow) { |
35 | follow.state = 'accepted' | 39 | follow.state = 'accepted' |
36 | 40 | ||
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 3d78c254f..dd7629ead 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 | |||
@@ -32,6 +32,10 @@ export class FollowingListComponent extends RestTable implements OnInit { | |||
32 | this.initialize() | 32 | this.initialize() |
33 | } | 33 | } |
34 | 34 | ||
35 | getIdentifier () { | ||
36 | return 'FollowingListComponent' | ||
37 | } | ||
38 | |||
35 | async removeFollowing (follow: ActorFollow) { | 39 | async removeFollowing (follow: ActorFollow) { |
36 | const res = await this.confirmService.confirm( | 40 | const res = await this.confirmService.confirm( |
37 | this.i18n('Do you really want to unfollow {{host}}?', { host: follow.following.host }), | 41 | this.i18n('Do you really want to unfollow {{host}}?', { host: follow.following.host }), |
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 4b41d1d86..2edee99a3 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 | |||
@@ -44,6 +44,10 @@ export class VideoRedundanciesListComponent extends RestTable implements OnInit | |||
44 | this.bytesPipe = new BytesPipe() | 44 | this.bytesPipe = new BytesPipe() |
45 | } | 45 | } |
46 | 46 | ||
47 | getIdentifier () { | ||
48 | return 'VideoRedundanciesListComponent' | ||
49 | } | ||
50 | |||
47 | ngOnInit () { | 51 | ngOnInit () { |
48 | this.loadSelectLocalStorage() | 52 | this.loadSelectLocalStorage() |
49 | 53 | ||
diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts index 03e3379e6..a3910177f 100644 --- a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts +++ b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts | |||
@@ -29,6 +29,10 @@ export class InstanceAccountBlocklistComponent extends RestTable implements OnIn | |||
29 | this.initialize() | 29 | this.initialize() |
30 | } | 30 | } |
31 | 31 | ||
32 | getIdentifier () { | ||
33 | return 'InstanceAccountBlocklistComponent' | ||
34 | } | ||
35 | |||
32 | unblockAccount (accountBlock: AccountBlock) { | 36 | unblockAccount (accountBlock: AccountBlock) { |
33 | const blockedAccount = accountBlock.blockedAccount | 37 | const blockedAccount = accountBlock.blockedAccount |
34 | 38 | ||
diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts index d92a4f195..5af6d8f76 100644 --- a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts +++ b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts | |||
@@ -30,6 +30,10 @@ export class InstanceServerBlocklistComponent extends RestTable implements OnIni | |||
30 | this.initialize() | 30 | this.initialize() |
31 | } | 31 | } |
32 | 32 | ||
33 | getIdentifier () { | ||
34 | return 'InstanceServerBlocklistComponent' | ||
35 | } | ||
36 | |||
33 | unblockServer (serverBlock: ServerBlock) { | 37 | unblockServer (serverBlock: ServerBlock) { |
34 | const host = serverBlock.blockedServer.host | 38 | const host = serverBlock.blockedServer.host |
35 | 39 | ||
diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts index 51114e087..2d991aae9 100644 --- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts +++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts | |||
@@ -62,6 +62,10 @@ export class VideoAbuseListComponent extends RestTable implements OnInit { | |||
62 | this.initialize() | 62 | this.initialize() |
63 | } | 63 | } |
64 | 64 | ||
65 | getIdentifier () { | ||
66 | return 'VideoAbuseListComponent' | ||
67 | } | ||
68 | |||
65 | openModerationCommentModal (videoAbuse: VideoAbuse) { | 69 | openModerationCommentModal (videoAbuse: VideoAbuse) { |
66 | this.moderationCommentModal.openModal(videoAbuse) | 70 | this.moderationCommentModal.openModal(videoAbuse) |
67 | } | 71 | } |
diff --git a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts index a215714b8..43b6863af 100644 --- a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts +++ b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts | |||
@@ -54,6 +54,10 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit { | |||
54 | ] | 54 | ] |
55 | } | 55 | } |
56 | 56 | ||
57 | getIdentifier () { | ||
58 | return 'VideoBlacklistListComponent' | ||
59 | } | ||
60 | |||
57 | getVideoUrl (videoBlacklist: VideoBlacklist) { | 61 | getVideoUrl (videoBlacklist: VideoBlacklist) { |
58 | return Video.buildClientUrl(videoBlacklist.video.uuid) | 62 | return Video.buildClientUrl(videoBlacklist.video.uuid) |
59 | } | 63 | } |
diff --git a/client/src/app/+admin/system/jobs/jobs.component.ts b/client/src/app/+admin/system/jobs/jobs.component.ts index bc40452cf..dc8343b52 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.ts +++ b/client/src/app/+admin/system/jobs/jobs.component.ts | |||
@@ -57,6 +57,10 @@ export class JobsComponent extends RestTable implements OnInit { | |||
57 | this.initialize() | 57 | this.initialize() |
58 | } | 58 | } |
59 | 59 | ||
60 | getIdentifier () { | ||
61 | return 'JobsComponent' | ||
62 | } | ||
63 | |||
60 | onJobStateOrTypeChanged () { | 64 | onJobStateOrTypeChanged () { |
61 | this.pagination.start = 0 | 65 | this.pagination.start = 0 |
62 | 66 | ||
diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts index 6e9a1feda..0de123e93 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.ts +++ b/client/src/app/+admin/users/user-list/user-list.component.ts | |||
@@ -86,6 +86,10 @@ export class UserListComponent extends RestTable implements OnInit { | |||
86 | ] | 86 | ] |
87 | } | 87 | } |
88 | 88 | ||
89 | getIdentifier () { | ||
90 | return 'UserListComponent' | ||
91 | } | ||
92 | |||
89 | openBanUserModal (users: User[]) { | 93 | openBanUserModal (users: User[]) { |
90 | for (const user of users) { | 94 | for (const user of users) { |
91 | if (user.username === 'root') { | 95 | if (user.username === 'root') { |