diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-03 14:23:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-03 14:23:55 +0100 |
commit | dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709 (patch) | |
tree | b71ed391c2d8f99bff40dd3461010876de7bb23c /client/src/app/+admin | |
parent | d324756edb836672f12284cd18e642a658b273d8 (diff) | |
download | PeerTube-dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709.tar.gz PeerTube-dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709.tar.zst PeerTube-dd6d2a7ce50e7ff02e00995ccc87f8f929ad9709.zip |
Improve advanced input filter
Diffstat (limited to 'client/src/app/+admin')
5 files changed, 15 insertions, 15 deletions
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts index 1fe8d0f9d..dca746f4e 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts | |||
@@ -30,11 +30,11 @@ export class VideoBlockListComponent extends RestTable implements OnInit { | |||
30 | title: $localize`Advanced filters`, | 30 | title: $localize`Advanced filters`, |
31 | children: [ | 31 | children: [ |
32 | { | 32 | { |
33 | queryParams: { search: 'type:auto' }, | 33 | value: 'type:auto', |
34 | label: $localize`Automatic blocks` | 34 | label: $localize`Automatic blocks` |
35 | }, | 35 | }, |
36 | { | 36 | { |
37 | queryParams: { search: 'type:manual' }, | 37 | value: 'type:manual', |
38 | label: $localize`Manual blocks` | 38 | label: $localize`Manual blocks` |
39 | } | 39 | } |
40 | ] | 40 | ] |
diff --git a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.ts b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.ts index a60b228af..25fe65133 100644 --- a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.ts +++ b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.ts | |||
@@ -47,11 +47,11 @@ export class VideoCommentListComponent extends RestTable implements OnInit { | |||
47 | title: $localize`Advanced filters`, | 47 | title: $localize`Advanced filters`, |
48 | children: [ | 48 | children: [ |
49 | { | 49 | { |
50 | queryParams: { search: 'local:true' }, | 50 | value: 'local:true', |
51 | label: $localize`Local comments` | 51 | label: $localize`Local comments` |
52 | }, | 52 | }, |
53 | { | 53 | { |
54 | queryParams: { search: 'local:false' }, | 54 | value: 'local:false', |
55 | label: $localize`Remote comments` | 55 | label: $localize`Remote comments` |
56 | } | 56 | } |
57 | ] | 57 | ] |
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.ts b/client/src/app/+admin/overview/users/user-list/user-list.component.ts index 548e6e80f..9fba11cbd 100644 --- a/client/src/app/+admin/overview/users/user-list/user-list.component.ts +++ b/client/src/app/+admin/overview/users/user-list/user-list.component.ts | |||
@@ -39,7 +39,7 @@ export class UserListComponent extends RestTable implements OnInit { | |||
39 | title: $localize`Advanced filters`, | 39 | title: $localize`Advanced filters`, |
40 | children: [ | 40 | children: [ |
41 | { | 41 | { |
42 | queryParams: { search: 'banned:true' }, | 42 | value: 'banned:true', |
43 | label: $localize`Banned users` | 43 | label: $localize`Banned users` |
44 | } | 44 | } |
45 | ] | 45 | ] |
diff --git a/client/src/app/+admin/overview/videos/video-admin.service.ts b/client/src/app/+admin/overview/videos/video-admin.service.ts index b90fe22d8..f80de7acd 100644 --- a/client/src/app/+admin/overview/videos/video-admin.service.ts +++ b/client/src/app/+admin/overview/videos/video-admin.service.ts | |||
@@ -44,11 +44,11 @@ export class VideoAdminService { | |||
44 | title: $localize`Video type`, | 44 | title: $localize`Video type`, |
45 | children: [ | 45 | children: [ |
46 | { | 46 | { |
47 | queryParams: { search: 'isLive:false' }, | 47 | value: 'isLive:false', |
48 | label: $localize`VOD` | 48 | label: $localize`VOD` |
49 | }, | 49 | }, |
50 | { | 50 | { |
51 | queryParams: { search: 'isLive:true' }, | 51 | value: 'isLive:true', |
52 | label: $localize`Live` | 52 | label: $localize`Live` |
53 | } | 53 | } |
54 | ] | 54 | ] |
@@ -58,19 +58,19 @@ export class VideoAdminService { | |||
58 | title: $localize`Video files`, | 58 | title: $localize`Video files`, |
59 | children: [ | 59 | children: [ |
60 | { | 60 | { |
61 | queryParams: { search: 'webtorrent:true' }, | 61 | value: 'webtorrent:true', |
62 | label: $localize`With WebTorrent` | 62 | label: $localize`With WebTorrent` |
63 | }, | 63 | }, |
64 | { | 64 | { |
65 | queryParams: { search: 'webtorrent:false' }, | 65 | value: 'webtorrent:false', |
66 | label: $localize`Without WebTorrent` | 66 | label: $localize`Without WebTorrent` |
67 | }, | 67 | }, |
68 | { | 68 | { |
69 | queryParams: { search: 'hls:true' }, | 69 | value: 'hls:true', |
70 | label: $localize`With HLS` | 70 | label: $localize`With HLS` |
71 | }, | 71 | }, |
72 | { | 72 | { |
73 | queryParams: { search: 'hls:false' }, | 73 | value: 'hls:false', |
74 | label: $localize`Without HLS` | 74 | label: $localize`Without HLS` |
75 | } | 75 | } |
76 | ] | 76 | ] |
@@ -80,11 +80,11 @@ export class VideoAdminService { | |||
80 | title: $localize`Videos scope`, | 80 | title: $localize`Videos scope`, |
81 | children: [ | 81 | children: [ |
82 | { | 82 | { |
83 | queryParams: { search: 'isLocal:false' }, | 83 | value: 'isLocal:false', |
84 | label: $localize`Remote videos` | 84 | label: $localize`Remote videos` |
85 | }, | 85 | }, |
86 | { | 86 | { |
87 | queryParams: { search: 'isLocal:true' }, | 87 | value: 'isLocal:true', |
88 | label: $localize`Local videos` | 88 | label: $localize`Local videos` |
89 | } | 89 | } |
90 | ] | 90 | ] |
@@ -94,7 +94,7 @@ export class VideoAdminService { | |||
94 | title: $localize`Exclude`, | 94 | title: $localize`Exclude`, |
95 | children: [ | 95 | children: [ |
96 | { | 96 | { |
97 | queryParams: { search: 'excludeMuted' }, | 97 | value: 'excludeMuted', |
98 | label: $localize`Exclude muted accounts` | 98 | label: $localize`Exclude muted accounts` |
99 | } | 99 | } |
100 | ] | 100 | ] |
diff --git a/client/src/app/+admin/overview/videos/video-list.component.ts b/client/src/app/+admin/overview/videos/video-list.component.ts index 635552cf5..0f98a5d33 100644 --- a/client/src/app/+admin/overview/videos/video-list.component.ts +++ b/client/src/app/+admin/overview/videos/video-list.component.ts | |||
@@ -86,7 +86,7 @@ export class VideoListComponent extends RestTable implements OnInit { | |||
86 | } | 86 | } |
87 | 87 | ||
88 | getPrivacyBadgeClass (video: Video) { | 88 | getPrivacyBadgeClass (video: Video) { |
89 | if (video.privacy.id === VideoPrivacy.PUBLIC) return 'badge-blue' | 89 | if (video.privacy.id === VideoPrivacy.PUBLIC) return 'badge-green' |
90 | 90 | ||
91 | return 'badge-yellow' | 91 | return 'badge-yellow' |
92 | } | 92 | } |