From 9903f35b2cd3aeef1f15a9db7a8e040b975648c1 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Sat, 18 Nov 2023 13:40:04 +0100 Subject: [PATCH] Move search result section to component & hide thumbnail if error The section that handles the search result list item is big and complex enough to have it's own component. Inside this component, a new method is added to hide the thumbnail preview if the image load errors out. Signed-off-by: fenn-cs Signed-off-by: nextcloud-command --- .../components/GlobalSearch/SearchResult.vue | 162 ++++++++++++++++++ core/src/views/GlobalSearchModal.vue | 101 +---------- dist/core-global-search.js | 4 +- dist/core-global-search.js.map | 2 +- 4 files changed, 168 insertions(+), 101 deletions(-) create mode 100644 core/src/components/GlobalSearch/SearchResult.vue diff --git a/core/src/components/GlobalSearch/SearchResult.vue b/core/src/components/GlobalSearch/SearchResult.vue new file mode 100644 index 0000000000000..cb82241ab5a73 --- /dev/null +++ b/core/src/components/GlobalSearch/SearchResult.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/core/src/views/GlobalSearchModal.vue b/core/src/views/GlobalSearchModal.vue index a9d422e0ff87c..d7e911c35fac5 100644 --- a/core/src/views/GlobalSearchModal.vue +++ b/core/src/views/GlobalSearchModal.vue @@ -97,30 +97,7 @@ {{ providerResult.provider }}
    - - - - +