aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-05 10:40:09 +0100
committerChocobozzz <me@florianbigard.com>2019-12-05 10:40:09 +0100
commit03aff3c6f671ffd5d81169fb49a2faf666b12931 (patch)
tree78d254f99ee0073c65b7d6ca0450506674e93a59 /client/src
parent5197732bcebb182cd7fc5c9f2bbc10b6d4843bc2 (diff)
downloadPeerTube-03aff3c6f671ffd5d81169fb49a2faf666b12931.tar.gz
PeerTube-03aff3c6f671ffd5d81169fb49a2faf666b12931.tar.zst
PeerTube-03aff3c6f671ffd5d81169fb49a2faf666b12931.zip
Fix build
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/search/search-filters.component.ts45
-rw-r--r--client/src/app/videos/+video-watch/modal/video-share.component.ts2
2 files changed, 23 insertions, 24 deletions
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 {
119 this.filtered.emit(this.advancedSearch) 119 this.filtered.emit(this.advancedSearch)
120 } 120 }
121 121
122 reset () {
123 this.advancedSearch.reset()
124 this.durationRange = undefined
125 this.publishedDateRange = undefined
126 this.originallyPublishedStartYear = undefined
127 this.originallyPublishedEndYear = undefined
128 this.inputUpdated()
129 }
130
131 resetField (fieldName: string, value?: any) {
132 this.advancedSearch[fieldName] = value
133 }
134
135 resetLocalField (fieldName: string, value?: any) {
136 this[fieldName] = value
137 this.inputUpdated()
138 }
139
140 resetOriginalPublicationYears () {
141 this.originallyPublishedStartYear = this.originallyPublishedEndYear = undefined
142 }
143
122 private loadOriginallyPublishedAtYears () { 144 private loadOriginallyPublishedAtYears () {
123 this.originallyPublishedStartYear = this.advancedSearch.originallyPublishedStartDate 145 this.originallyPublishedStartYear = this.advancedSearch.originallyPublishedStartDate
124 ? new Date(this.advancedSearch.originallyPublishedStartDate).getFullYear().toString() 146 ? new Date(this.advancedSearch.originallyPublishedStartDate).getFullYear().toString()
@@ -234,27 +256,4 @@ export class SearchFiltersComponent implements OnInit {
234 256
235 this.advancedSearch.startDate = date.toISOString() 257 this.advancedSearch.startDate = date.toISOString()
236 } 258 }
237
238 private reset () {
239 this.advancedSearch.reset()
240 this.durationRange = undefined
241 this.publishedDateRange = undefined
242 this.originallyPublishedStartYear = undefined
243 this.originallyPublishedEndYear = undefined
244 this.inputUpdated()
245 }
246
247 private resetField (fieldName: string, value?: any) {
248 this.advancedSearch[fieldName] = value
249 }
250
251 private resetLocalField (fieldName: string, value?: any) {
252 this[fieldName] = value
253 this.inputUpdated()
254 }
255
256 private resetOriginalPublicationYears () {
257 this.originallyPublishedStartYear = this.originallyPublishedEndYear = undefined
258 }
259
260} 259}
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 {
96 96
97 if (!this.includeVideoInPlaylist) return base 97 if (!this.includeVideoInPlaylist) return base
98 98
99 return base + '?videoId=' + this.video.uuid 99 return base + '?videoId=' + this.video.uuid
100 } 100 }
101 101
102 notSecure () { 102 notSecure () {