From 86cf4663bddb123395d7c36ce8bea576196d9e67 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Tue, 28 Nov 2023 10:05:07 +0100 Subject: [PATCH] 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 --- core/src/components/GlobalSearch/SearchResult.vue | 5 +++++ core/src/views/GlobalSearchModal.vue | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/components/GlobalSearch/SearchResult.vue b/core/src/components/GlobalSearch/SearchResult.vue index 7647ca298ed6a..23f0876b06e8c 100644 --- a/core/src/components/GlobalSearch/SearchResult.vue +++ b/core/src/components/GlobalSearch/SearchResult.vue @@ -91,6 +91,11 @@ export default { thumbnailErrorHandler() { this.thumbnailHasError = true }, + openResult(result) { + if (result.resourceUrl) { + window.location = result.resourceUrl + } + }, }, } diff --git a/core/src/views/GlobalSearchModal.vue b/core/src/views/GlobalSearchModal.vue index 9058776780f4a..20dd9ba1042ef 100644 --- a/core/src/views/GlobalSearchModal.vue +++ b/core/src/views/GlobalSearchModal.vue @@ -341,11 +341,6 @@ export default { }) this.results = sortedResults }, - openResult(result) { - if (result.resourceUrl) { - window.location = result.resourceUrl - } - }, mapContacts(contacts) { return contacts.map(contact => { return {