aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/advanced-search.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/search/advanced-search.model.ts')
-rw-r--r--client/src/app/search/advanced-search.model.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/src/app/search/advanced-search.model.ts b/client/src/app/search/advanced-search.model.ts
index 48616a9ae..033fa9bba 100644
--- a/client/src/app/search/advanced-search.model.ts
+++ b/client/src/app/search/advanced-search.model.ts
@@ -110,6 +110,19 @@ export class AdvancedSearch {
110 } 110 }
111 } 111 }
112 112
113 size () {
114 let acc = 0
115
116 const obj = this.toUrlObject()
117 for (const k of Object.keys(obj)) {
118 if (k === 'sort') continue // Exception
119
120 if (obj[k] !== undefined) acc++
121 }
122
123 return acc
124 }
125
113 private intoArray (value: any) { 126 private intoArray (value: any) {
114 if (!value) return undefined 127 if (!value) return undefined
115 128