Skip to content

Commit

Permalink
more design review adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Feb 28, 2024
1 parent 24b8d2e commit 8623028
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
18 changes: 15 additions & 3 deletions src/components/AssistantFormInputs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
<NcButton
type="secondary"
@click="onChooseFile('writingStyle')">
{{ t('assistant','Choose File') }}
<template #icon>
<FileDocumentIcon />
</template>
{{ t('assistant','Choose file') }}
</NcButton>
</div>
<NcRichContenteditable
Expand All @@ -37,7 +40,10 @@
<NcButton
type="secondary"
@click="onChooseFile('sourceMaterial')">
{{ t('assistant','Choose File') }}
<template #icon>
<FileDocumentIcon />
</template>
{{ t('assistant','Choose file') }}
</NcButton>
</div>
<NcRichContenteditable
Expand All @@ -59,7 +65,10 @@
<NcButton
type="secondary"
@click="onChooseFile('prompt')">
{{ t('assistant','Choose File') }}
<template #icon>
<FileDocumentIcon />
</template>
{{ t('assistant','Choose file') }}
</NcButton>
</div>
<NcRichContenteditable
Expand All @@ -82,6 +91,8 @@
</template>

<script>
import FileDocumentIcon from 'vue-material-design-icons/FileDocument.vue'
import NcRichContenteditable from '@nextcloud/vue/dist/Components/NcRichContenteditable.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
Expand Down Expand Up @@ -115,6 +126,7 @@ export default {
SpeechToTextInputForm,
NcRichContenteditable,
NcButton,
FileDocumentIcon,
},
props: {
inputs: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/AssistantTextProcessingForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<template #icon>
<HistoryIcon />
</template>
{{ t('assistant', 'Previous tasks') }}
{{ t('assistant', 'Previous "{taskTypeName}" tasks', { taskTypeName: selectedTaskType.name }) }}
</NcButton>
<div class="footer--action-buttons">
<NcButton
Expand Down
6 changes: 4 additions & 2 deletions src/components/TaskListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
:details="details"
@click="$emit('load')">
<template #icon>
<component :is="icon" :title="statusTitle" />
<component :is="icon"
style="margin-right: 8px;"
:title="statusTitle" />
</template>
<template #subname>
<Text2ImageInlineDisplay v-if="isSuccessful && isText2Image"
Expand Down Expand Up @@ -139,7 +141,7 @@ export default {
if (this.task.taskType === 'OCP\\TextToImage\\Task') {
return n('assistant', '{n} image has been generated', '{n} images have been generated', this.task.inputs.nResults, { n: this.task.inputs.nResults })
}
return t('assistant', 'Output') + ': ' + this.task.output
return t('assistant', 'Result') + ': ' + this.task.output
} else if (this.task.status === STATUS.scheduled) {
if (this.task.taskType === 'OCP\\TextToImage\\Task') {
return n('assistant', 'Generation of {n} image is scheduled', 'Generation of {n} images is scheduled', this.task.inputs.nResults, { n: this.task.inputs.nResults })
Expand Down

0 comments on commit 8623028

Please sign in to comment.