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>
pull/42062/head
fenn-cs 6 months ago
parent e1ecf798d9
commit aa25590130

@ -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…
Cancel
Save