diff --git a/shell/app/locales/en.json b/shell/app/locales/en.json index 66151a176..f76edf894 100644 --- a/shell/app/locales/en.json +++ b/shell/app/locales/en.json @@ -1790,6 +1790,7 @@ "no ip address": "no ip address", "no matching data": "no matching data", "no more than 30 characters": "no more than 30 characters", + "no more than 100 characters": "no more than 100 characters", "no {name}": "no {name}", "node params": "node params", "normal view": "normal view", diff --git a/shell/app/locales/zh.json b/shell/app/locales/zh.json index 617ce04a9..b2b08dc1d 100644 --- a/shell/app/locales/zh.json +++ b/shell/app/locales/zh.json @@ -1790,6 +1790,7 @@ "no ip address": "暂无ip地址", "no matching data": "无匹配数据", "no more than 30 characters": "不超过30个字符", + "no more than 100 characters": "不超过100个字符", "no {name}": "暂无{name}", "node params": "节点入参", "normal view": "正常查看", diff --git a/shell/app/modules/project/pages/release/components/form.tsx b/shell/app/modules/project/pages/release/components/form.tsx index df0cdf3aa..e2bf18e1c 100644 --- a/shell/app/modules/project/pages/release/components/form.tsx +++ b/shell/app/modules/project/pages/release/components/form.tsx @@ -130,6 +130,7 @@ const ReleaseForm = ({ readyOnly = false }: { readyOnly?: boolean }) => { className: 'w-1/2', rules: [ { required: true, message: i18n.t('Please enter the {name}', { name: i18n.t('Version').toLowerCase() }) }, + { max: 100, message: i18n.t('dop:no more than 100 characters') }, { pattern: /^[A-Za-z0-9._+-]+$/, message: i18n.t('dop:Must be composed of letters, numbers, underscores, hyphens and dots.'),