This is an automated email from the git hooks/post-receive script. New commit to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git commit 1fd1a6aec0ee5ecc4126d37873470691fa8e0f9b Author: kaufmann <kaufmann@codelutin.com> Date: Fri Aug 7 14:39:37 2020 +0200 Modification pour pouvoir retirer un tag de la recherche en cliquant dessus --- web/src/main.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/web/src/main.js b/web/src/main.js index 0d5e161..5e30e1a 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -117,17 +117,15 @@ Vue.mixin({ }, addTagsAndGo: function(tags) { let query = { ...this.currentQuery } - let added = false query.tags = query.tags ? [...query.tags] : [] tags.forEach((t) => { if (query.tags.indexOf(t) === -1) { query.tags.push(t) - added = true + } else { + query.tags.splice(t, 1) } }) - if (added) { - this.go(query) - } + this.go(query) } }, computed: { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.