From 03aff3c6f671ffd5d81169fb49a2faf666b12931 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Dec 2019 10:40:09 +0100 Subject: Fix build --- client/src/app/search/search-filters.component.ts | 45 +++++++++++----------- .../+video-watch/modal/video-share.component.ts | 2 +- 2 files changed, 23 insertions(+), 24 deletions(-) (limited to 'client/src') diff --git a/client/src/app/search/search-filters.component.ts b/client/src/app/search/search-filters.component.ts index b64c965b1..57131fcac 100644 --- a/client/src/app/search/search-filters.component.ts +++ b/client/src/app/search/search-filters.component.ts @@ -119,6 +119,28 @@ export class SearchFiltersComponent implements OnInit { this.filtered.emit(this.advancedSearch) } + reset () { + this.advancedSearch.reset() + this.durationRange = undefined + this.publishedDateRange = undefined + this.originallyPublishedStartYear = undefined + this.originallyPublishedEndYear = undefined + this.inputUpdated() + } + + resetField (fieldName: string, value?: any) { + this.advancedSearch[fieldName] = value + } + + resetLocalField (fieldName: string, value?: any) { + this[fieldName] = value + this.inputUpdated() + } + + resetOriginalPublicationYears () { + this.originallyPublishedStartYear = this.originallyPublishedEndYear = undefined + } + private loadOriginallyPublishedAtYears () { this.originallyPublishedStartYear = this.advancedSearch.originallyPublishedStartDate ? new Date(this.advancedSearch.originallyPublishedStartDate).getFullYear().toString() @@ -234,27 +256,4 @@ export class SearchFiltersComponent implements OnInit { this.advancedSearch.startDate = date.toISOString() } - - private reset () { - this.advancedSearch.reset() - this.durationRange = undefined - this.publishedDateRange = undefined - this.originallyPublishedStartYear = undefined - this.originallyPublishedEndYear = undefined - this.inputUpdated() - } - - private resetField (fieldName: string, value?: any) { - this.advancedSearch[fieldName] = value - } - - private resetLocalField (fieldName: string, value?: any) { - this[fieldName] = value - this.inputUpdated() - } - - private resetOriginalPublicationYears () { - this.originallyPublishedStartYear = this.originallyPublishedEndYear = undefined - } - } diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.ts b/client/src/app/videos/+video-watch/modal/video-share.component.ts index a9a7a0eab..a2b38b3a0 100644 --- a/client/src/app/videos/+video-watch/modal/video-share.component.ts +++ b/client/src/app/videos/+video-watch/modal/video-share.component.ts @@ -96,7 +96,7 @@ export class VideoShareComponent { if (!this.includeVideoInPlaylist) return base - return base + '?videoId=' + this.video.uuid + return base + '?videoId=' + this.video.uuid } notSecure () { -- cgit v1.2.3