aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/moderation
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-08 10:49:26 +0200
committerChocobozzz <me@florianbigard.com>2020-04-08 10:49:26 +0200
commit8e11a1b37cb1d226acfe494f8821e5eb6e874dd0 (patch)
treec7444cdf17dddd9debacf66dbaa54e8ee04e4b5b /client/src/app/+admin/moderation
parent14f83c68f11da3435940504fa4000193fb4943be (diff)
downloadPeerTube-8e11a1b37cb1d226acfe494f8821e5eb6e874dd0.tar.gz
PeerTube-8e11a1b37cb1d226acfe494f8821e5eb6e874dd0.tar.zst
PeerTube-8e11a1b37cb1d226acfe494f8821e5eb6e874dd0.zip
Fix sort in admin tables
Diffstat (limited to 'client/src/app/+admin/moderation')
-rw-r--r--client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts4
-rw-r--r--client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts4
-rw-r--r--client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts4
-rw-r--r--client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.ts4
4 files changed, 16 insertions, 0 deletions
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 }