Explorar o código

fixed contentTopic

ali %!s(int64=2) %!d(string=hai) anos
pai
achega
ed078830f3

+ 6 - 0
src/components/FormBuilderCustumComponents/Hashtags/HashtagSelector.vue

@@ -14,6 +14,9 @@
               @update:model-value="onChangeSelected"
               @filter="filterFn">
       <template #prepend>
+        <q-btn icon="add"
+               flat
+               @click="addHashtag" />
         <q-icon name="search" />
       </template>
       <template v-slot:no-option>
@@ -76,6 +79,9 @@ export default {
     }
   },
   methods: {
+    addHashtag () {
+      // this.fetchLoading = true
+    },
     onChangeSelected () {
       this.emitUpdateValue()
     },

+ 2 - 1
src/components/Widgets/Content/ContentTopicList/ContentTopicList.vue

@@ -130,6 +130,7 @@ export default {
         ]
       },
       mounted: false,
+      sidebarFilters: { categories: [] },
       createRouteName: ''
     }
   },
@@ -139,7 +140,7 @@ export default {
   },
   methods: {
     onChangeSidebarFilters (filters) {
-      this.sidebarFilters = filters
+      this.sidebarFilters = Object.assign(filters, { categories: [] })
       this.search()
     },
     onTopFilterChange () {