From 19a3b914f19812a082e2f47d31c66fb1d9771736 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Mar 2018 11:29:46 +0100 Subject: Change video abuse API response --- .../video-abuse-list/video-abuse-list.component.html | 10 ++++++++-- .../video-abuse-list/video-abuse-list.component.ts | 10 +++++----- 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'client') diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html index 88a1641cf..fcbdc6147 100644 --- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html +++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html @@ -18,10 +18,16 @@ {{ videoAbuse.reason }} - {{ videoAbuse.reporterUsername + '@' + videoAbuse.reporterServerHost }} + + + {{ createByString(videoAbuse.reporterAccount) }} + + {{ videoAbuse.createdAt }} - {{ videoAbuse.videoName }} + + {{ videoAbuse.video.name }} + diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts index bf9483f34..b650194b7 100644 --- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts +++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts @@ -1,11 +1,11 @@ import { Component, OnInit } from '@angular/core' - +import { Account } from '@app/shared/account/account.model' import { NotificationsService } from 'angular2-notifications' import { SortMeta } from 'primeng/components/common/sortmeta' - -import { RestTable, RestPagination, VideoAbuseService } from '../../../shared' import { VideoAbuse } from '../../../../../../shared' +import { RestPagination, RestTable, VideoAbuseService } from '../../../shared' + @Component({ selector: 'my-video-abuse-list', templateUrl: './video-abuse-list.component.html', @@ -29,8 +29,8 @@ export class VideoAbuseListComponent extends RestTable implements OnInit { this.loadSort() } - getRouterVideoLink (videoUUID: string) { - return [ '/videos', videoUUID ] + createByString (account: Account) { + return Account.CREATE_BY_STRING(account.name, account.host) } protected loadData () { -- cgit v1.2.3