perf: add Add button to ListConfigItem
#4259
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes: #4254
Motivation
ListConfigItemdialog instead of relying only on Enter key.Description
t('core.common.list.addMore')for the single-item mode action label instead of a hard-coded string inListConfigItem.vue.Addbutton next to the new-item text field that callsaddItem()and is disabled when the input is empty inListConfigItem.vue.addMoretodashboard/src/i18n/locales/en-US/core/common.jsonanddashboard/src/i18n/locales/zh-CN/core/common.json.Testing
npm --prefix dashboard run devand confirmed Vite reported ready (succeeded).Codex Task
Summary by Sourcery
为列表配置对话框添加一个显式的、本地化的控件用于向列表中添加项目,同时使该组件与现有的 i18n 字符串保持一致。
New Features:
Enhancements:
Documentation:
Original summary in English
Summary by Sourcery
Add an explicit, localized control for adding items to list configuration dialogs while aligning the component with existing i18n strings.
New Features:
Enhancements:
Documentation: