aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/advanced-search.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-23 11:12:03 +0200
committerChocobozzz <me@florianbigard.com>2018-07-24 14:04:05 +0200
commit7afea880e561196671f186045c94f09511189405 (patch)
tree63d71c3c79a55e659a7359dbb17d47b84f1fb405 /client/src/app/search/advanced-search.model.ts
parent0b18f4aa80df8868bf34605423c7a298dffbb2aa (diff)
downloadPeerTube-7afea880e561196671f186045c94f09511189405.tar.gz
PeerTube-7afea880e561196671f186045c94f09511189405.tar.zst
PeerTube-7afea880e561196671f186045c94f09511189405.zip
Handle back/forward page in advanced search
Diffstat (limited to 'client/src/app/search/advanced-search.model.ts')
-rw-r--r--client/src/app/search/advanced-search.model.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/src/app/search/advanced-search.model.ts b/client/src/app/search/advanced-search.model.ts
index a0f333175..aad436788 100644
--- a/client/src/app/search/advanced-search.model.ts
+++ b/client/src/app/search/advanced-search.model.ts
@@ -32,14 +32,14 @@ export class AdvancedSearch {
32 }) { 32 }) {
33 if (!options) return 33 if (!options) return
34 34
35 this.startDate = options.startDate 35 this.startDate = options.startDate || undefined
36 this.endDate = options.endDate 36 this.endDate = options.endDate || undefined
37 this.nsfw = options.nsfw 37 this.nsfw = options.nsfw || undefined
38 this.categoryOneOf = options.categoryOneOf 38 this.categoryOneOf = options.categoryOneOf || undefined
39 this.licenceOneOf = options.licenceOneOf 39 this.licenceOneOf = options.licenceOneOf || undefined
40 this.languageOneOf = options.languageOneOf 40 this.languageOneOf = options.languageOneOf || undefined
41 this.tagsOneOf = options.tagsOneOf 41 this.tagsOneOf = options.tagsOneOf || undefined
42 this.tagsAllOf = options.tagsAllOf 42 this.tagsAllOf = options.tagsAllOf || undefined
43 this.durationMin = parseInt(options.durationMin, 10) 43 this.durationMin = parseInt(options.durationMin, 10)
44 this.durationMax = parseInt(options.durationMax, 10) 44 this.durationMax = parseInt(options.durationMax, 10)
45 45