Skip to content

Commit

Permalink
fix(settings/AdminAI): Fix eslint
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Oct 22, 2023
1 parent bfc205f commit 6007b1b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apps/settings/src/components/AdminAI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
</template>
</NcSettingsSection>
<NcSettingsSection :name="t('settings', 'Image generation')"
:description="t('settings', 'Image generation can be implemented by different apps. Here you can set which app should be used.')">
:description="t('settings', 'Image generation can be implemented by different apps. Here you can set which app should be used.')">
<template v-for="provider in text2imageProviders">
<NcCheckboxRadioSwitch :key="provider.class"
:checked.sync="settings['ai.text2image_provider']"
:value="provider.class"
name="text2image_provider"
type="radio"
@update:checked="saveChanges">
:checked.sync="settings['ai.text2image_provider']"
:value="provider.class"
name="text2image_provider"
type="radio"
@update:checked="saveChanges">
{{ provider.name }}
</NcCheckboxRadioSwitch>
</template>
Expand Down Expand Up @@ -106,7 +106,7 @@ export default {
DragVerticalIcon,
ArrowDownIcon,
ArrowUpIcon,
NcButton
NcButton,
},
data() {
return {
Expand Down Expand Up @@ -134,22 +134,22 @@ export default {
},
hasText2ImageProviders() {
return this.text2imageProviders.length > 0
}
},
},
methods: {
moveUp(i) {
this.settings['ai.translation_provider_preferences'].splice(
Math.min(i - 1, 0),
0,
...this.settings['ai.translation_provider_preferences'].splice(i, 1)
...this.settings['ai.translation_provider_preferences'].splice(i, 1),
)
this.saveChanges()
},
moveDown(i) {
this.settings['ai.translation_provider_preferences'].splice(
i + 1,
0,
...this.settings['ai.translation_provider_preferences'].splice(i, 1)
...this.settings['ai.translation_provider_preferences'].splice(i, 1),
)
this.saveChanges()
},
Expand Down

0 comments on commit 6007b1b

Please sign in to comment.