mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
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>
This commit is contained in:
parent
04f2a19375
commit
987ac1e9c3
3 changed files with 7 additions and 6 deletions
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
|||
4
dist/core-global-search.js
vendored
4
dist/core-global-search.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-global-search.js.map
vendored
2
dist/core-global-search.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue