Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ SPDX-License-Identifier = "OFL-1.1"
[[annotations]]
path = "apps/settings/img/ai.svg"
precedence = "aggregate"
SPDX-FileCopyrightText = "2019 GreenTurtwig <https://pictogrammers.com/contributor/GreenTurtwig/>"
SPDX-FileCopyrightText = "2018-2024 Google LLC"
SPDX-License-Identifier = "Apache-2.0"

[[annotations]]
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/img/ai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getID(): string {
}

public function getName(): string {
return $this->l->t('Artificial Intelligence');
return $this->l->t('Assistant');
}

public function getPriority(): int {
Expand Down
22 changes: 16 additions & 6 deletions apps/settings/src/components/AdminAI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
@update:modelValue="saveChanges">
{{ t('settings', 'Allow AI usage for guest users') }}
</NcCheckboxRadioSwitch>
<h3>{{ t('settings', 'Provider for Task types') }}</h3>
<template v-for="type in taskProcessingTaskTypes">
<div :key="type">
<h3>{{ t('settings', 'Task:') }} {{ type.name }}</h3>
<p>{{ type.description }}</p>
<div :key="type" class="tasktype-item">
<p class="tasktype-name">
{{ type.name }}
</p>
<NcCheckboxRadioSwitch v-model="settings['ai.taskprocessing_type_preferences'][type.id]"
type="switch"
@update:modelValue="saveChanges">
{{ t('settings', 'Enable') }}
</NcCheckboxRadioSwitch>
<NcSelect v-model="settings['ai.taskprocessing_provider_preferences'][type.id]"
</NcCheckboxRadioSwitch><NcSelect v-model="settings['ai.taskprocessing_provider_preferences'][type.id]"
class="provider-select"
:clearable="false"
:disabled="!settings['ai.taskprocessing_type_preferences'][type.id]"
Expand All @@ -33,7 +34,6 @@
{{ taskProcessingProviders.find(p => p.id === label)?.name }}
</template>
</NcSelect>
<p>&nbsp;</p>
</div>
</template>
<template v-if="!hasTaskProcessing">
Expand Down Expand Up @@ -244,4 +244,14 @@ export default {
.provider-select {
min-width: 350px !important;
}

.tasktype-item {
display: flex;
align-items: center;
gap: 8px;
.tasktype-name {
flex: 1;
margin: 0;
}
}
</style>
4 changes: 2 additions & 2 deletions dist/settings-vue-settings-admin-ai.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/settings-vue-settings-admin-ai.js.map

Large diffs are not rendered by default.

Loading