Skip to content

Commit 45ba2f7

Browse files
authored
Merge pull request #47659 from nextcloud/fix/settings/admin/textprocessing2
Followup: fix(settings): Don't display built-in task types in AI settings TextProcessing
2 parents b7bd5b0 + fa1bce0 commit 45ba2f7

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

apps/settings/src/components/AdminAI.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@
9090
<p>&nbsp;</p>
9191
</div>
9292
</template>
93-
<template v-if="!hasTextProcessing">
93+
<template v-if="tpTaskTypes.length === 0">
9494
<NcNoteCard type="info">
95-
{{ t('settings', 'None of your currently installed apps provide Text processing functionality') }}
95+
<!-- TRANSLATORS Text processing is the name of a Nextcloud-internal API -->
96+
{{ t('settings', 'None of your currently installed apps provide custom Text processing functionality.') }}
9697
</NcNoteCard>
9798
</template>
9899
</NcSettingsSection>
@@ -149,10 +150,10 @@ export default {
149150
},
150151
tpTaskTypes() {
151152
const builtinTextProcessingTypes = [
152-
'\\OCP\\TextProcessing\\FreePromptTaskType',
153-
'\\OCP\\TextProcessing\\HeadlineTaskType',
154-
'\\OCP\\TextProcessing\\SummaryTaskType',
155-
'\\OCP\\TextProcessing\\TopicsTaskType',
153+
'OCP\\TextProcessing\\FreePromptTaskType',
154+
'OCP\\TextProcessing\\HeadlineTaskType',
155+
'OCP\\TextProcessing\\SummaryTaskType',
156+
'OCP\\TextProcessing\\TopicsTaskType',
156157
]
157158
return Object.keys(this.settings['ai.textprocessing_provider_preferences'])
158159
.filter(type => !!this.getTextProcessingTaskType(type))

dist/settings-vue-settings-admin-ai.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/settings-vue-settings-admin-ai.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)