mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #41929 from nextcloud/41785-manual-backport
[stable28] Migrate openResult method to SearchResult component
This commit is contained in:
commit
2bc87ddc5b
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 {
|
||||
|
|
|
|||
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