Merge pull request #41929 from nextcloud/41785-manual-backport

[stable28] Migrate openResult method to SearchResult component
pull/41945/head
Andy Scherzinger 2023-11-30 18:56:33 +07:00 committed by GitHub
commit 2bc87ddc5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

@ -2,7 +2,7 @@
<NcListItem class="result-items__item"
:name="title"
:bold="false"
@click="openResult(result)">
@click="openResult(resourceUrl)">
<template #icon>
<div aria-hidden="true"
class="result-items__item-icon"
@ -91,6 +91,11 @@ export default {
thumbnailErrorHandler() {
this.thumbnailHasError = true
},
openResult(url) {
if (url) {
window.location = url
}
},
},
}
</script>

@ -348,11 +348,6 @@ export default {
})
this.results = sortedResults
},
openResult(result) {
if (result.resourceUrl) {
window.location = result.resourceUrl
}
},
mapContacts(contacts) {
return contacts.map(contact => {
return {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long