diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-22 13:00:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 13:00:39 +0200 |
commit | 1ebddadd0704812a4600c39cabe2268321e88331 (patch) | |
tree | 1cc8560e5b63e9976aa5411ba800a62cfe7b8ea9 /client/src/app/shared/video/video.model.ts | |
parent | 07aea1a2642fc9868cb01e30c322514029d5b95a (diff) | |
download | PeerTube-1ebddadd0704812a4600c39cabe2268321e88331.tar.gz PeerTube-1ebddadd0704812a4600c39cabe2268321e88331.tar.zst PeerTube-1ebddadd0704812a4600c39cabe2268321e88331.zip |
predefined report reasons & improved reporter UI (#2842)
- added `startAt` and `endAt` optional timestamps to help pin down reported sections of a video
- added predefined report reasons
- added video player with report modal
Diffstat (limited to 'client/src/app/shared/video/video.model.ts')
-rw-r--r-- | client/src/app/shared/video/video.model.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts index 16e43cbd8..dc5f45626 100644 --- a/client/src/app/shared/video/video.model.ts +++ b/client/src/app/shared/video/video.model.ts | |||
@@ -7,6 +7,7 @@ import { peertubeTranslate, ServerConfig } from '../../../../../shared/models' | |||
7 | import { Actor } from '@app/shared/actor/actor.model' | 7 | import { Actor } from '@app/shared/actor/actor.model' |
8 | import { VideoScheduleUpdate } from '../../../../../shared/models/videos/video-schedule-update.model' | 8 | import { VideoScheduleUpdate } from '../../../../../shared/models/videos/video-schedule-update.model' |
9 | import { AuthUser } from '@app/core' | 9 | import { AuthUser } from '@app/core' |
10 | import { environment } from '../../../environments/environment' | ||
10 | 11 | ||
11 | export class Video implements VideoServerModel { | 12 | export class Video implements VideoServerModel { |
12 | byVideoChannel: string | 13 | byVideoChannel: string |
@@ -111,7 +112,7 @@ export class Video implements VideoServerModel { | |||
111 | this.previewUrl = hash.previewUrl || (absoluteAPIUrl + hash.previewPath) | 112 | this.previewUrl = hash.previewUrl || (absoluteAPIUrl + hash.previewPath) |
112 | 113 | ||
113 | this.embedPath = hash.embedPath | 114 | this.embedPath = hash.embedPath |
114 | this.embedUrl = hash.embedUrl || (absoluteAPIUrl + hash.embedPath) | 115 | this.embedUrl = hash.embedUrl || (environment.embedUrl + hash.embedPath) |
115 | 116 | ||
116 | this.url = hash.url | 117 | this.url = hash.url |
117 | 118 | ||