From 9c03b89ab59966ce45de80d8c4ee8382abc83f50 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Mon, 27 Apr 2026 09:37:33 +0200 Subject: [PATCH] get rid of tagsArrayMS and filterInput because they are unnecessary --- public/js/components/DashboardWidget/Url.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/public/js/components/DashboardWidget/Url.js b/public/js/components/DashboardWidget/Url.js index d3b275cff..631f75022 100644 --- a/public/js/components/DashboardWidget/Url.js +++ b/public/js/components/DashboardWidget/Url.js @@ -31,7 +31,6 @@ export default { invalidURL: false, invalidTitel: false, }, - tagsArrayMS: [], tagsArrayAC: [], selectedTags: [], newTag: null, @@ -70,10 +69,7 @@ export default { return 0; else return Math.min(...this.sharedFiltered.map(b => b.sort)); - }, - filterInput(){ - return this.selectedFilters.map(item => item.tag); - }, + } }, methods: { stopDrag(event){ @@ -272,9 +268,6 @@ export default { .call(ApiBookmark.getAllBookmarkTags()) .then((res) => res.data) .then((result) => { - //Version Chips - this.tagsArrayMS = this.prepareTag(result.data); - //Version Autocomplete this.tagsArrayAC = result.data; }) @@ -282,13 +275,13 @@ export default { }, openFilterModal() { if (this.config.tags && this.config.tags.length) - this.selectedFilters = this.prepareTag(this.config.tags); + this.selectedFilters = [ ...this.config.tags ]; else this.selectedFilters = []; this.$refs.filterModal.show(); }, async handleAddingTagFilter(widgetId) { - this.config.tags = [ ...this.filterInput ]; + this.config.tags = this.selectedFilters; this.$emit('change'); this.sharedFiltered = this.filterBookmarksByTags(this.shared); this.$fhcAlert.alertInfo(this.$p.t("bookmark", "filterUpdated")); @@ -539,8 +532,7 @@ export default {