UX: Fix handling of empty query values in frontend components #1995
This commit is contained in:
parent
680686185f
commit
bd5c773232
7 changed files with 20 additions and 20 deletions
26
frontend/package-lock.json
generated
26
frontend/package-lock.json
generated
|
@ -2072,9 +2072,9 @@
|
|||
"integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ=="
|
||||
},
|
||||
"node_modules/@types/json-schema": {
|
||||
"version": "7.0.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.10.tgz",
|
||||
"integrity": "sha512-BLO9bBq59vW3fxCpD4o0N4U+DXsvwvIcl+jofw0frQo/GrBFC+/jRZj1E7kgp6dvTyNmA4y6JCV5Id/r3mNP5A=="
|
||||
"version": "7.0.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",
|
||||
"integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ=="
|
||||
},
|
||||
"node_modules/@types/json5": {
|
||||
"version": "0.0.29",
|
||||
|
@ -7030,11 +7030,11 @@
|
|||
"integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
|
||||
},
|
||||
"node_modules/isbinaryfile": {
|
||||
"version": "4.0.9",
|
||||
"resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.9.tgz",
|
||||
"integrity": "sha512-GhwgwhMeEkMF/PmVpA+zRGCxoQvJ7PONqsKI+eq+ivgYolKe7AQdlqLFiSEBSTrO3YsQ2jvgwT2Gd6Z1TDcoaw==",
|
||||
"version": "4.0.10",
|
||||
"resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz",
|
||||
"integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==",
|
||||
"engines": {
|
||||
"node": ">= 14.0.0"
|
||||
"node": ">= 8.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/gjtorikian/"
|
||||
|
@ -14049,9 +14049,9 @@
|
|||
"integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ=="
|
||||
},
|
||||
"@types/json-schema": {
|
||||
"version": "7.0.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.10.tgz",
|
||||
"integrity": "sha512-BLO9bBq59vW3fxCpD4o0N4U+DXsvwvIcl+jofw0frQo/GrBFC+/jRZj1E7kgp6dvTyNmA4y6JCV5Id/r3mNP5A=="
|
||||
"version": "7.0.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",
|
||||
"integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ=="
|
||||
},
|
||||
"@types/json5": {
|
||||
"version": "0.0.29",
|
||||
|
@ -17640,9 +17640,9 @@
|
|||
"integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
|
||||
},
|
||||
"isbinaryfile": {
|
||||
"version": "4.0.9",
|
||||
"resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.9.tgz",
|
||||
"integrity": "sha512-GhwgwhMeEkMF/PmVpA+zRGCxoQvJ7PONqsKI+eq+ivgYolKe7AQdlqLFiSEBSTrO3YsQ2jvgwT2Gd6Z1TDcoaw=="
|
||||
"version": "4.0.10",
|
||||
"resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz",
|
||||
"integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw=="
|
||||
},
|
||||
"isexe": {
|
||||
"version": "2.0.0",
|
||||
|
|
|
@ -176,7 +176,7 @@ export default {
|
|||
isFullScreen: !!document.fullscreenElement,
|
||||
config: this.$config.values,
|
||||
searchExpanded: false,
|
||||
q: this.filter.q ? this.filter.q : "",
|
||||
q: this.filter.q ? this.filter.q : '',
|
||||
all: {
|
||||
countries: [{ID: "", Name: this.$gettext("All Countries")}],
|
||||
cameras: [{ID: 0, Name: this.$gettext("All Cameras")}],
|
||||
|
@ -240,7 +240,7 @@ export default {
|
|||
this.updateQuery();
|
||||
},
|
||||
onChangeQuery(val) {
|
||||
this.q = String(val);
|
||||
this.q = val ? String(val) : '';
|
||||
},
|
||||
clearQuery() {
|
||||
this.q = '';
|
||||
|
|
|
@ -483,7 +483,7 @@ export default {
|
|||
});
|
||||
},
|
||||
onChangeQuery(val) {
|
||||
this.q = String(val);
|
||||
this.q = val ? String(val) : '';
|
||||
},
|
||||
clearQuery() {
|
||||
this.q = '';
|
||||
|
|
|
@ -415,7 +415,7 @@ export default {
|
|||
});
|
||||
},
|
||||
onChangeQuery(val) {
|
||||
this.q = String(val);
|
||||
this.q = val ? String(val) : '';
|
||||
},
|
||||
clearQuery() {
|
||||
this.q = '';
|
||||
|
|
|
@ -131,7 +131,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
onChangeQuery(val) {
|
||||
this.q = String(val);
|
||||
this.q = val ? String(val) : '';
|
||||
},
|
||||
clearQuery() {
|
||||
this.q = '';
|
||||
|
|
|
@ -527,7 +527,7 @@ export default {
|
|||
});
|
||||
},
|
||||
onChangeQuery(val) {
|
||||
this.q = String(val);
|
||||
this.q = val ? String(val) : '';
|
||||
},
|
||||
clearQuery() {
|
||||
this.q = '';
|
||||
|
|
|
@ -195,7 +195,7 @@ export default {
|
|||
});
|
||||
},
|
||||
query: function () {
|
||||
return this.$route.params.q ? this.$route.params.q : "";
|
||||
return this.$route.params.q ? this.$route.params.q : '';
|
||||
},
|
||||
openPhoto(uid) {
|
||||
// Abort if uid is empty or results aren't loaded.
|
||||
|
|
Loading…
Reference in a new issue