Skip to content

Commit 04c1532

Browse files
perf: optimize text
1 parent 48dce6c commit 04c1532

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

ui/src/locales/lang/en-US/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
modify: 'Modify',
1818
modifySuccess: 'Modify successful',
1919
cancel: 'Cancel',
20-
confirm: 'Confirm',
20+
confirm: 'OK',
2121
tip: 'Prompt',
2222
add: 'Add',
2323
refresh: 'Refresh',

ui/src/locales/lang/en-US/layout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
github: 'Project Address',
33
wiki: 'User Manual',
44
forum: 'Forum For Help',
5-
logout: 'Logout',
5+
logout: 'Log Out',
66
apiKey: 'API Key',
77
apiServiceAddress: 'API Service Address',
88
language: 'Language',

ui/src/workflow/nodes/ai-chat-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
@click="openAIParamSettingDialog(chat_data.model_id)"
3737
@refreshForm="refreshParam"
3838
>
39-
{{ $t('common.paramSetting') }}
39+
<el-icon><Setting /></el-icon>
4040
</el-button>
4141
</div>
4242
</template>

ui/src/workflow/nodes/image-generate/index.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
@click="openAIParamSettingDialog(form_data.model_id)"
3636
@refreshForm="refreshParam"
3737
>
38-
{{ $t('common.paramSetting') }}
38+
<el-icon><Setting /></el-icon>
3939
</el-button>
4040
</div>
4141
</template>
@@ -103,17 +103,21 @@
103103
</div>
104104
<el-tooltip effect="dark" placement="right" popper-class="max-w-200">
105105
<template #content
106-
>{{ $t('views.applicationWorkflow.nodes.imageGenerateNode.negative_prompt.tooltip') }}
106+
>{{
107+
$t('views.applicationWorkflow.nodes.imageGenerateNode.negative_prompt.tooltip')
108+
}}
107109
</template>
108110
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
109111
</el-tooltip>
110112
</div>
111113
</template>
112114
<MdEditorMagnify
113115
@wheel="wheel"
114-
:title=" $t('views.applicationWorkflow.nodes.imageGenerateNode.negative_prompt.label')"
116+
:title="$t('views.applicationWorkflow.nodes.imageGenerateNode.negative_prompt.label')"
115117
v-model="form_data.negative_prompt"
116-
:placeholder="$t('views.applicationWorkflow.nodes.imageGenerateNode.negative_prompt.placeholder')"
118+
:placeholder="
119+
$t('views.applicationWorkflow.nodes.imageGenerateNode.negative_prompt.placeholder')
120+
"
117121
style="height: 150px"
118122
@submitDialog="submitNegativeDialog"
119123
/>

ui/src/workflow/nodes/image-understand/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@click="openAIParamSettingDialog(form_data.model_id)"
3838
@refreshForm="refreshParam"
3939
>
40-
{{ $t('common.paramSetting') }}
40+
<el-icon><Setting /></el-icon>
4141
</el-button>
4242
</div>
4343
</template>

ui/src/workflow/nodes/question-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
@click="openAIParamSettingDialog(form_data.model_id)"
3737
@refreshForm="refreshParam"
3838
>
39-
{{ $t('common.paramSetting') }}
39+
<el-icon><Setting /></el-icon>
4040
</el-button>
4141
</div>
4242
</template>

ui/src/workflow/nodes/text-to-speech-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
:disabled="!form_data.tts_model_id"
3636
class="mr-4"
3737
>
38-
{{ $t('common.paramSetting') }}
38+
<el-icon><Setting /></el-icon>
3939
</el-button>
4040
</div>
4141
</template>

0 commit comments

Comments
 (0)