mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Correct semantics for link opening in global search
Following the update of `NcListItem` to allow control over where and how passed `hrefs` open, the search result component can now make use of these props. See : https://github.com/nextcloud-libraries/nextcloud-vue/pull/4923 Resolves : #41800 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
0577c9a103
commit
a728bcde43
1 changed files with 2 additions and 6 deletions
|
|
@ -2,7 +2,8 @@
|
|||
<NcListItem class="result-items__item"
|
||||
:name="title"
|
||||
:bold="false"
|
||||
@click="openResult(resourceUrl)">
|
||||
:href="resourceUrl"
|
||||
target="_self">
|
||||
<template #icon>
|
||||
<div aria-hidden="true"
|
||||
class="result-items__item-icon"
|
||||
|
|
@ -91,11 +92,6 @@ export default {
|
|||
thumbnailErrorHandler() {
|
||||
this.thumbnailHasError = true
|
||||
},
|
||||
openResult(url) {
|
||||
if (url) {
|
||||
window.location = url
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue