Frontend: Trim search queries
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
a01e54070d
commit
5b2a71bbc8
|
@ -272,6 +272,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateQuery() {
|
updateQuery() {
|
||||||
|
this.filter.q = this.filter.q.trim();
|
||||||
const len = this.filter.q.length;
|
const len = this.filter.q.length;
|
||||||
|
|
||||||
if (len > 1 && len < 3) {
|
if (len > 1 && len < 3) {
|
||||||
|
|
|
@ -393,6 +393,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateQuery() {
|
updateQuery() {
|
||||||
|
this.filter.q = this.filter.q.trim();
|
||||||
const len = this.filter.q.length;
|
const len = this.filter.q.length;
|
||||||
|
|
||||||
if (len > 1 && len < 3) {
|
if (len > 1 && len < 3) {
|
||||||
|
|
|
@ -354,6 +354,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateQuery() {
|
updateQuery() {
|
||||||
|
this.filter.q = this.filter.q.trim();
|
||||||
const len = this.filter.q.length;
|
const len = this.filter.q.length;
|
||||||
|
|
||||||
if (len > 1 && len < 3) {
|
if (len > 1 && len < 3) {
|
||||||
|
|
|
@ -117,6 +117,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateQuery() {
|
updateQuery() {
|
||||||
|
this.filter.q = this.filter.q.trim();
|
||||||
const len = this.filter.q.length;
|
const len = this.filter.q.length;
|
||||||
|
|
||||||
if (len > 1 && len < 3) {
|
if (len > 1 && len < 3) {
|
||||||
|
|
|
@ -325,6 +325,7 @@
|
||||||
this.lastId = "";
|
this.lastId = "";
|
||||||
},
|
},
|
||||||
updateQuery() {
|
updateQuery() {
|
||||||
|
this.filter.q = this.filter.q.trim();
|
||||||
const len = this.filter.q.length;
|
const len = this.filter.q.length;
|
||||||
|
|
||||||
if (len > 1 && len < 3) {
|
if (len > 1 && len < 3) {
|
||||||
|
|
|
@ -307,6 +307,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
updateQuery() {
|
updateQuery() {
|
||||||
|
this.filter.q = this.filter.q.trim();
|
||||||
const len = this.filter.q.length;
|
const len = this.filter.q.length;
|
||||||
|
|
||||||
if (len > 1 && len < 3) {
|
if (len > 1 && len < 3) {
|
||||||
|
|
|
@ -202,6 +202,7 @@
|
||||||
this.search();
|
this.search();
|
||||||
},
|
},
|
||||||
updateQuery() {
|
updateQuery() {
|
||||||
|
this.filter.q = this.filter.q.trim();
|
||||||
const len = this.filter.q.length;
|
const len = this.filter.q.length;
|
||||||
|
|
||||||
if (len > 1 && len < 3) {
|
if (len > 1 && len < 3) {
|
||||||
|
|
Loading…
Reference in a new issue