diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-05-03 23:01:57 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-04 15:01:44 +0200 |
commit | 25a42e293be90d35afad2096e9db2fa3d617d855 (patch) | |
tree | 5739da8e2aed75447cf0fd608089cc8849c0da33 /client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts | |
parent | 801d957155d574bda984206021cdd1fe58ef56b9 (diff) | |
download | PeerTube-25a42e293be90d35afad2096e9db2fa3d617d855.tar.gz PeerTube-25a42e293be90d35afad2096e9db2fa3d617d855.tar.zst PeerTube-25a42e293be90d35afad2096e9db2fa3d617d855.zip |
Fix rowsPerPage change, add filter clear button, update video-abuse-list search query param dynamically
Diffstat (limited to 'client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts')
-rw-r--r-- | client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts index 5481915b9..d9cb19845 100644 --- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts +++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-details.component.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { Component, ViewEncapsulation, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { VideoAbuse } from '../../../../../../shared' | ||
3 | import { Account } from '@app/shared/account/account.model' | 2 | import { Account } from '@app/shared/account/account.model' |
3 | import { Actor } from '@app/shared/actor/actor.model' | ||
4 | import { ProcessedVideoAbuse } from './video-abuse-list.component' | ||
4 | 5 | ||
5 | @Component({ | 6 | @Component({ |
6 | selector: 'my-video-abuse-details', | 7 | selector: 'my-video-abuse-details', |
@@ -8,9 +9,9 @@ import { Account } from '@app/shared/account/account.model' | |||
8 | styleUrls: [ '../moderation.component.scss' ] | 9 | styleUrls: [ '../moderation.component.scss' ] |
9 | }) | 10 | }) |
10 | export class VideoAbuseDetailsComponent { | 11 | export class VideoAbuseDetailsComponent { |
11 | @Input() videoAbuse: VideoAbuse | 12 | @Input() videoAbuse: ProcessedVideoAbuse |
12 | 13 | ||
13 | createByString (account: Account) { | 14 | switchToDefaultAvatar ($event: Event) { |
14 | return Account.CREATE_BY_STRING(account.name, account.host) | 15 | ($event.target as HTMLImageElement).src = Actor.GET_DEFAULT_AVATAR_URL() |
15 | } | 16 | } |
16 | } | 17 | } |