Fixing circular dependency and table variable access
authorRigel Kent <sendmemail@rigelk.eu>
Sun, 19 Apr 2020 18:42:33 +0000 (20:42 +0200)
committerRigel Kent <par@rigelk.eu>
Fri, 1 May 2020 14:41:02 +0000 (16:41 +0200)
client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
client/src/app/shared/rest/rest-table.ts

index e4e78cdf70ab00a82820c7e918ee75963c16827a..0c727ae90dc9d78b461f8aef213fc9caa57f8708 100644 (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 => {
index 63e0e1b976b08c1172903899df513bf204674f63..5954a7ba18ad49cc315c6cb8c084e6329d5b4de8 100644 (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