mirror of https://github.com/Chocobozzz/PeerTube
Fixing circular dependency and table variable access
This commit is contained in:
parent
d384061366
commit
042daa7072
|
@ -223,7 +223,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
getVideoEmbed (videoAbuse: VideoAbuse) {
|
getVideoEmbed (videoAbuse: VideoAbuse) {
|
||||||
const absoluteAPIUrl = 'http://localhost:9000' || getAbsoluteAPIUrl() // TODO
|
const absoluteAPIUrl = getAbsoluteAPIUrl()
|
||||||
const embedUrl = buildVideoLink({
|
const embedUrl = buildVideoLink({
|
||||||
baseUrl: absoluteAPIUrl + '/videos/embed/' + videoAbuse.video.uuid,
|
baseUrl: absoluteAPIUrl + '/videos/embed/' + videoAbuse.video.uuid,
|
||||||
warningTitle: false
|
warningTitle: false
|
||||||
|
@ -262,7 +262,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
|
||||||
protected loadData () {
|
protected loadData () {
|
||||||
return this.videoAbuseService.getVideoAbuses({
|
return this.videoAbuseService.getVideoAbuses({
|
||||||
pagination: this.pagination,
|
pagination: this.pagination,
|
||||||
sort: this.sort,
|
sort: this.sort,
|
||||||
search: this.search
|
search: this.search
|
||||||
}).subscribe(
|
}).subscribe(
|
||||||
async resultList => {
|
async resultList => {
|
||||||
|
|
|
@ -11,7 +11,7 @@ export abstract class RestTable {
|
||||||
abstract sort: SortMeta
|
abstract sort: SortMeta
|
||||||
abstract pagination: RestPagination
|
abstract pagination: RestPagination
|
||||||
|
|
||||||
protected search: string
|
search: string
|
||||||
private searchStream: Subject<string>
|
private searchStream: Subject<string>
|
||||||
|
|
||||||
abstract getIdentifier (): string
|
abstract getIdentifier (): string
|
||||||
|
|
Loading…
Reference in New Issue