mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Migrate openResult method to SearchResult component
After moving the `SearchResult` to its own component and leaving out the openResult method, the search results do not lead anywhere but but error out. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
fdaa6e7c95
commit
71d7a99a52
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