Skip to content

Commit

Permalink
Dealing with bad publications in the network
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Aug 12, 2024
1 parent 21e4780 commit 62118fd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/sidebars/search/SearchSideBar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import { searchStore } from '../../store/store.js'
import { searchStore, directoryStore, metadataStore } from '../../store/store.js'
</script>

<template>
Expand All @@ -23,15 +23,17 @@ import { searchStore } from '../../store/store.js'
<template #icon>
<DatabaseOutline :size="20" />
</template>
<NcCheckboxRadioSwitch type="switch">
Catalogi naam
<NcCheckboxRadioSwitch v-for="(listing, i) in directoryStore.listingList" type="switch">
{{ listing.title || 'Geen titel' }}
</NcCheckboxRadioSwitch>
</NcAppSidebarTab>
<NcAppSidebarTab id="share-tab" name="Metadata" :order="3">
<template #icon>
<FileTreeOutline :size="20" />
</template>
Metadata tab content
<NcCheckboxRadioSwitch v-for="(metaData, i) in metadataStore.metaDataList" type="switch">
{{ metaData.title || 'Geen titel' }}
</NcCheckboxRadioSwitch>
</NcAppSidebarTab>
</NcAppSidebar>
</template>
Expand Down Expand Up @@ -69,6 +71,10 @@ export default {
watch: {
search: 'debouncedSearch',
},
mounted() {
directoryStore.refreshListingList()
metadataStore.refreshMetaDataList()
},
methods: {
debouncedSearch: debounce(function() {
searchStore.getSearchResults()
Expand Down

0 comments on commit 62118fd

Please sign in to comment.