Fixing circular dependency and table variable access

pull/2711/head
Rigel Kent 2020-04-19 20:42:33 +02:00 committed by Rigel Kent
parent d384061366
commit 042daa7072
2 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
}
getVideoEmbed (videoAbuse: VideoAbuse) {
const absoluteAPIUrl = 'http://localhost:9000' || getAbsoluteAPIUrl() // TODO
const absoluteAPIUrl = getAbsoluteAPIUrl()
const embedUrl = buildVideoLink({
baseUrl: absoluteAPIUrl + '/videos/embed/' + videoAbuse.video.uuid,
warningTitle: false
@ -262,7 +262,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
protected loadData () {
return this.videoAbuseService.getVideoAbuses({
pagination: this.pagination,
sort: this.sort,
sort: this.sort,
search: this.search
}).subscribe(
async resultList => {

View File

@ -11,7 +11,7 @@ export abstract class RestTable {
abstract sort: SortMeta
abstract pagination: RestPagination
protected search: string
search: string
private searchStream: Subject<string>
abstract getIdentifier (): string