diff options
Diffstat (limited to 'client/src/app/shared/shared-custom-markup')
-rw-r--r-- | client/src/app/shared/shared-custom-markup/custom-markup.service.ts | 3 | ||||
-rw-r--r-- | client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-custom-markup/custom-markup.service.ts b/client/src/app/shared/shared-custom-markup/custom-markup.service.ts index ab640d348..a959b336d 100644 --- a/client/src/app/shared/shared-custom-markup/custom-markup.service.ts +++ b/client/src/app/shared/shared-custom-markup/custom-markup.service.ts | |||
@@ -7,7 +7,6 @@ import { | |||
7 | ContainerMarkupData, | 7 | ContainerMarkupData, |
8 | EmbedMarkupData, | 8 | EmbedMarkupData, |
9 | PlaylistMiniatureMarkupData, | 9 | PlaylistMiniatureMarkupData, |
10 | VideoFilter, | ||
11 | VideoMiniatureMarkupData, | 10 | VideoMiniatureMarkupData, |
12 | VideosListMarkupData | 11 | VideosListMarkupData |
13 | } from '@shared/models' | 12 | } from '@shared/models' |
@@ -193,7 +192,7 @@ export class CustomMarkupService { | |||
193 | 192 | ||
194 | isLive: this.buildBoolean(data.isLive), | 193 | isLive: this.buildBoolean(data.isLive), |
195 | 194 | ||
196 | filter: this.buildBoolean(data.onlyLocal) ? 'local' as VideoFilter : undefined | 195 | isLocal: this.buildBoolean(data.onlyLocal) ? true : undefined |
197 | } | 196 | } |
198 | 197 | ||
199 | this.dynamicElementService.setModel(component, model) | 198 | this.dynamicElementService.setModel(component, model) |
diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts index 856e43681..0e4d5fb12 100644 --- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts +++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { finalize } from 'rxjs/operators' | 1 | import { finalize } from 'rxjs/operators' |
2 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' | 2 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' |
3 | import { AuthService, Notifier } from '@app/core' | 3 | import { AuthService, Notifier } from '@app/core' |
4 | import { VideoFilter, VideoSortField } from '@shared/models' | 4 | import { VideoSortField } from '@shared/models' |
5 | import { Video, VideoService } from '../../shared-main' | 5 | import { Video, VideoService } from '../../shared-main' |
6 | import { MiniatureDisplayOptions } from '../../shared-video-miniature' | 6 | import { MiniatureDisplayOptions } from '../../shared-video-miniature' |
7 | import { CustomMarkupComponent } from './shared' | 7 | import { CustomMarkupComponent } from './shared' |
@@ -21,7 +21,7 @@ export class VideosListMarkupComponent implements CustomMarkupComponent, OnInit | |||
21 | @Input() languageOneOf: string[] | 21 | @Input() languageOneOf: string[] |
22 | @Input() count: number | 22 | @Input() count: number |
23 | @Input() onlyDisplayTitle: boolean | 23 | @Input() onlyDisplayTitle: boolean |
24 | @Input() filter: VideoFilter | 24 | @Input() isLocal: boolean |
25 | @Input() isLive: boolean | 25 | @Input() isLive: boolean |
26 | @Input() maxRows: number | 26 | @Input() maxRows: number |
27 | @Input() channelHandle: string | 27 | @Input() channelHandle: string |
@@ -86,7 +86,7 @@ export class VideosListMarkupComponent implements CustomMarkupComponent, OnInit | |||
86 | }, | 86 | }, |
87 | categoryOneOf: this.categoryOneOf, | 87 | categoryOneOf: this.categoryOneOf, |
88 | languageOneOf: this.languageOneOf, | 88 | languageOneOf: this.languageOneOf, |
89 | filter: this.filter, | 89 | isLocal: this.isLocal, |
90 | isLive: this.isLive, | 90 | isLive: this.isLive, |
91 | sort: this.sort as VideoSortField, | 91 | sort: this.sort as VideoSortField, |
92 | account: { nameWithHost: this.accountHandle }, | 92 | account: { nameWithHost: this.accountHandle }, |