mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #41785 from nextcloud/fix-open-search-result
Migrate openResult method to SearchResult component
This commit is contained in:
commit
0a8ceb4c0c
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>
|
||||
|
|
|
|||
|
|
@ -349,11 +349,6 @@ export default {
|
|||
})
|
||||
this.results = sortedResults
|
||||
},
|
||||
openResult(result) {
|
||||
if (result.resourceUrl) {
|
||||
window.location = result.resourceUrl
|
||||
}
|
||||
},
|
||||
mapContacts(contacts) {
|
||||
return contacts.map(contact => {
|
||||
return {
|
||||
|
|
|
|||
4
dist/core-global-search.js
vendored
4
dist/core-global-search.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-global-search.js.map
vendored
2
dist/core-global-search.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue