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
12 changes: 10 additions & 2 deletions dashboard/src/components/shared/ListConfigItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
</div>
<v-btn size="small" color="primary" variant="tonal" @click="openDialog">
{{ preferSingleItem ? '添加更多' : (buttonText || t('core.common.list.modifyButton')) }}
{{ preferSingleItem ? t('core.common.list.addMore') : (buttonText || t('core.common.list.modifyButton')) }}
</v-btn>
</div>

Expand All @@ -48,6 +48,14 @@
:placeholder="t('core.common.list.inputPlaceholder')"
class="flex-grow-1">
</v-text-field>
<v-btn
@click="addItem"
variant="tonal"
color="primary"
size="small"
:disabled="!newItem.trim()">
{{ t('core.common.list.addButton') }}
</v-btn>
<v-btn
@click="showBatchImport = true"
variant="tonal"
Expand Down Expand Up @@ -318,4 +326,4 @@ function cancelBatchImport() {
.v-chip {
margin: 2px;
}
</style>
</style>
1 change: 1 addition & 0 deletions dashboard/src/i18n/locales/en-US/core/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"list": {
"addItemPlaceholder": "Add new item, press Enter to confirm",
"addButton": "Add",
"addMore": "Add More",
"batchImport": "Batch Import",
"batchImportTitle": "Batch Import",
"batchImportLabel": "One item per line",
Expand Down
3 changes: 2 additions & 1 deletion dashboard/src/i18n/locales/zh-CN/core/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"list": {
"addItemPlaceholder": "添加新项,按回车确认添加",
"addButton": "添加",
"addMore": "添加更多",
"batchImport": "批量导入",
"batchImportTitle": "批量导入",
"batchImportLabel": "每行一个项目",
Expand All @@ -94,4 +95,4 @@
"copy": "复制",
"noData": "暂无数据"
}
}
}