summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2023-11-14 18:03:43 +0100
committernextcloud-command <nextcloud-command@users.noreply.github.com>2023-11-14 20:07:42 +0000
commit987ac1e9c3f0948cd7522c1b7448adb84c54373b (patch)
tree29eb4ba23efa76e36aa51f369ecdde36c65c94e5 /core/src
parent04f2a19375a8dcf4954586dd796d0c4ae0283740 (diff)
downloadnextcloud-server-987ac1e9c3f0948cd7522c1b7448adb84c54373b.tar.gz
nextcloud-server-987ac1e9c3f0948cd7522c1b7448adb84c54373b.zip
Check in-app search availability
Only show in-app serach button if available for specific app in question. Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/views/GlobalSearchModal.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/views/GlobalSearchModal.vue b/core/src/views/GlobalSearchModal.vue
index ce45fd9774e..a199a5fb464 100644
--- a/core/src/views/GlobalSearchModal.vue
+++ b/core/src/views/GlobalSearchModal.vue
@@ -124,13 +124,13 @@
</ul>
<div class="result-footer">
<NcButton type="tertiary-no-background" @click="loadMoreResultsForProvider(providerResult.id)">
- Load more results
+ {{ t('core', 'Load more results') }}
<template #icon>
<DotsHorizontalIcon :size="20" />
</template>
</NcButton>
- <NcButton alignment="end-reverse" type="tertiary-no-background">
- Search in {{ providerResult.provider }}
+ <NcButton v-if="providerResult.inAppSearch" alignment="end-reverse" type="tertiary-no-background">
+ {{ t('core', 'Search in') }} {{ providerResult.provider }}
<template #icon>
<ArrowRight :size="20" />
</template>
@@ -288,6 +288,7 @@ export default {
newResults.push({
id: provider.id,
provider: provider.name,
+ inAppSearch: provider.inAppSearch,
results: response.data.ocs.data.entries,
})