mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #47710 from nextcloud/fix/settings/admin/textprocessing2-stable30
[stable30] fix(settings): Don't display built-in task types in AI settings TextP…
This commit is contained in:
commit
7f62397f63
3 changed files with 10 additions and 9 deletions
|
|
@ -90,9 +90,10 @@
|
|||
<p> </p>
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="!hasTextProcessing">
|
||||
<template v-if="tpTaskTypes.length === 0">
|
||||
<NcNoteCard type="info">
|
||||
{{ t('settings', 'None of your currently installed apps provide Text processing functionality') }}
|
||||
<!-- TRANSLATORS Text processing is the name of a Nextcloud-internal API -->
|
||||
{{ t('settings', 'None of your currently installed apps provide custom Text processing functionality.') }}
|
||||
</NcNoteCard>
|
||||
</template>
|
||||
</NcSettingsSection>
|
||||
|
|
@ -149,10 +150,10 @@ export default {
|
|||
},
|
||||
tpTaskTypes() {
|
||||
const builtinTextProcessingTypes = [
|
||||
'\\OCP\\TextProcessing\\FreePromptTaskType',
|
||||
'\\OCP\\TextProcessing\\HeadlineTaskType',
|
||||
'\\OCP\\TextProcessing\\SummaryTaskType',
|
||||
'\\OCP\\TextProcessing\\TopicsTaskType',
|
||||
'OCP\\TextProcessing\\FreePromptTaskType',
|
||||
'OCP\\TextProcessing\\HeadlineTaskType',
|
||||
'OCP\\TextProcessing\\SummaryTaskType',
|
||||
'OCP\\TextProcessing\\TopicsTaskType',
|
||||
]
|
||||
return Object.keys(this.settings['ai.textprocessing_provider_preferences'])
|
||||
.filter(type => !!this.getTextProcessingTaskType(type))
|
||||
|
|
|
|||
4
dist/settings-vue-settings-admin-ai.js
vendored
4
dist/settings-vue-settings-admin-ai.js
vendored
File diff suppressed because one or more lines are too long
2
dist/settings-vue-settings-admin-ai.js.map
vendored
2
dist/settings-vue-settings-admin-ai.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue