Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SudoThijn committed Aug 12, 2024
1 parent cbddb74 commit d9054a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/sidebars/search/SearchSideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ import { searchStore, directoryStore, metadataStore } from '../../store/store.js
<template #icon>
<DatabaseOutline :size="20" />
</template>
<NcCheckboxRadioSwitch v-for="(listing, i) in directoryStore.listingList" type="switch">
<NcCheckboxRadioSwitch v-for="(listing, i) in directoryStore.listingList" :key="i" type="switch">
{{ listing.title || 'Geen titel' }}
</NcCheckboxRadioSwitch>
</NcAppSidebarTab>
<NcAppSidebarTab id="share-tab" name="Metadata" :order="3">
<template #icon>
<FileTreeOutline :size="20" />
</template>
<NcCheckboxRadioSwitch v-for="(metaData, i) in metadataStore.metaDataList" type="switch">
<NcCheckboxRadioSwitch v-for="(metaData, i) in metadataStore.metaDataList" :key="i" type="switch">
{{ metaData.title || 'Geen titel' }}
</NcCheckboxRadioSwitch>
</NcAppSidebarTab>
Expand Down
6 changes: 3 additions & 3 deletions src/views/search/SearchList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { searchStore } from '../../store/store.js'
<ListBoxOutline :size="44" />
</template>
<template #actions>
<NcActionButton v-if="result.portal" @click="goToLink(result.portal)">
<NcActionButton v-if="result.portal" @click="openLink(result.portal)">
<template #icon>
<OpenInNew :size="20" />
</template>
Expand All @@ -44,8 +44,8 @@ export default {
OpenInNew,
},
methods: {
goToLink(link) {
//
openLink(link, type = '') {
window.open(link, type)
},
},
}
Expand Down

0 comments on commit d9054a1

Please sign in to comment.