diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-21 09:52:21 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-01 16:41:02 +0200 |
commit | d1261d9a3cef6d3df408c9dce977100ac196f9f8 (patch) | |
tree | 093c443b2e4c38ee738da3b420c7e3993da4edb3 /client | |
parent | 197876ea87494f9c8f5262fa371b0f70e3c56fb5 (diff) | |
download | PeerTube-d1261d9a3cef6d3df408c9dce977100ac196f9f8.tar.gz PeerTube-d1261d9a3cef6d3df408c9dce977100ac196f9f8.tar.zst PeerTube-d1261d9a3cef6d3df408c9dce977100ac196f9f8.zip |
Add links from user-edit
Diffstat (limited to 'client')
3 files changed, 5 insertions, 2 deletions
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 f04efa9fc..e87163c4f 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 | |||
@@ -217,6 +217,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit, AfterV | |||
217 | } | 217 | } |
218 | 218 | ||
219 | setTableFilter (filter: string) { | 219 | setTableFilter (filter: string) { |
220 | // FIXME: cannot use ViewChild, so create a component for the filter input | ||
220 | const filterInput = document.getElementById('table-filter') as HTMLInputElement | 221 | const filterInput = document.getElementById('table-filter') as HTMLInputElement |
221 | if (filterInput) filterInput.value = filter | 222 | if (filterInput) filterInput.value = filter |
222 | } | 223 | } |
diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index 5303d6096..df9f24749 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html | |||
@@ -37,13 +37,13 @@ | |||
37 | </a> | 37 | </a> |
38 | </div> | 38 | </div> |
39 | <div> | 39 | <div> |
40 | <a> | 40 | <a [routerLink]="[ '/admin/moderation/video-abuses/list' ]" [queryParams]="{ 'search': user?.account.displayName }"> |
41 | <div class="dashboard-num">{{ user.videoAbusesCount }}</div> | 41 | <div class="dashboard-num">{{ user.videoAbusesCount }}</div> |
42 | <div class="dashboard-label" i18n>Incriminated in reports</div> | 42 | <div class="dashboard-label" i18n>Incriminated in reports</div> |
43 | </a> | 43 | </a> |
44 | </div> | 44 | </div> |
45 | <div> | 45 | <div> |
46 | <a> | 46 | <a [routerLink]="[ '/admin/moderation/video-abuses/list' ]" [queryParams]="{ 'search': user?.account.displayName }"> |
47 | <div class="dashboard-num">{{ user.videoAbusesAcceptedCount }} / {{ user.videoAbusesCreatedCount }}</div> | 47 | <div class="dashboard-num">{{ user.videoAbusesAcceptedCount }} / {{ user.videoAbusesCreatedCount }}</div> |
48 | <div class="dashboard-label" i18n>Authored reports accepted</div> | 48 | <div class="dashboard-label" i18n>Authored reports accepted</div> |
49 | </a> | 49 | </a> |
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index adeee758e..a6d1abd6d 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -692,6 +692,8 @@ | |||
692 | margin-bottom: 10px; | 692 | margin-bottom: 10px; |
693 | 693 | ||
694 | & > a { | 694 | & > a { |
695 | @include disable-default-a-behaviour; | ||
696 | |||
695 | text-decoration: none; | 697 | text-decoration: none; |
696 | color: inherit; | 698 | color: inherit; |
697 | display: block; | 699 | display: block; |