Skip to content

Commit

Permalink
fix(assistant): Provide missing properties to Nextcloud Vue components
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 5, 2024
1 parent eb3b713 commit d08c5f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Assistant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
@replace-content="translateReplace"
@close="hideTranslate" />

<NcModal :show.sync="showTaskList">
<NcModal :show.sync="showTaskList" :name="t('text', 'Assistant results')">
<div class="task-list">
<h4 v-if="tasks.length > 0">
<span class="assistant-bubble">
Expand Down
10 changes: 7 additions & 3 deletions src/components/Modal/Translate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
-->

<template>
<NcModal size="large" @close="$emit('close')">
<NcModal size="large"
:name="t('text', 'Translate')"
@close="$emit('close')">
<div class="translate-dialog">
<h2>{{ t('text', 'Translate') }}</h2>
<em>{{ t('text', 'To translate individual parts of the text, select it before using the translate function.') }}</em>
Expand All @@ -31,6 +33,7 @@
<NcSelect v-model="fromLanguage"
input-id="fromLanguage"
:placeholder="t('text', 'Select language')"
:aria-label-combobox="t('text', 'Translate from')"
:options="fromLanguages"
:disabled="disableFromLanguageSelect"
:append-to-body="false" />
Expand All @@ -49,6 +52,7 @@
<NcSelect v-model="toLanguage"
input-id="toLanguage"
:placeholder="t('text', 'Select language')"
:aria-label-combobox="t('text', 'Translate to')"
:options="toLanguages"
:disabled="!fromLanguage"
:append-to-body="false" />
Expand Down Expand Up @@ -166,12 +170,12 @@ export default {
},
watch: {
input() {
this.result = null
this.result = ''
this.error = null
this.autosize()
},
toLanguage() {
this.result = null
this.result = ''
this.error = null
},
},
Expand Down

0 comments on commit d08c5f6

Please sign in to comment.