diff --git a/apps/web/src/services/asset-inventory/components/AssetAnalysisNameFormModal.vue b/apps/web/src/services/asset-inventory/components/AssetAnalysisNameFormModal.vue
index dd72b73bc1..18db4fa1c0 100644
--- a/apps/web/src/services/asset-inventory/components/AssetAnalysisNameFormModal.vue
+++ b/apps/web/src/services/asset-inventory/components/AssetAnalysisNameFormModal.vue
@@ -88,6 +88,7 @@ const {
}, {
name(value) {
if (!value) return i18n.t('INVENTORY.ASSET_ANALYSIS.NAME_REQUIRED');
+ if (value.length > 40) return i18n.t('INVENTORY.ASSET_ANALYSIS.MAX_LENGTH_INVALID', { max: 40 });
if (state.existingNameList.find((d) => d === value)) return i18n.t('INVENTORY.ASSET_ANALYSIS.NAME_DUPLICATED');
return true;
},
@@ -128,8 +129,8 @@ const updateMetricName = async () => {
metric_id: state.currentMetricId,
name: name.value,
});
- await assetAnalysisPageStore.loadMetric(state.currentMetricId);
state.proxyVisible = false;
+ await assetAnalysisPageStore.loadMetric(state.currentMetricId);
showSuccessMessage(i18n.t('INVENTORY.ASSET_ANALYSIS.ALT_S_UPDATE_METRIC_NAME'), '');
} catch (e) {
ErrorHandler.handleRequestError(e, i18n.t('INVENTORY.ASSET_ANALYSIS.ALT_E_UPDATE_METRIC_NAME'));
@@ -141,8 +142,8 @@ const updateMetricExampleName = async () => {
example_id: state.currentMetricExampleId,
name: name.value,
});
- await assetAnalysisPageStore.loadMetricExamples(assetAnalysisPageGetters.namespaceId);
state.proxyVisible = false;
+ await assetAnalysisPageStore.loadMetricExamples(assetAnalysisPageGetters.namespaceId);
showSuccessMessage(i18n.t('INVENTORY.ASSET_ANALYSIS.ALT_S_UPDATE_METRIC_NAME'), '');
} catch (e) {
ErrorHandler.handleRequestError(e, i18n.t('INVENTORY.ASSET_ANALYSIS.ALT_E_UPDATE_METRIC_NAME'));
diff --git a/packages/language-pack/console-translation-2.8.babel b/packages/language-pack/console-translation-2.8.babel
index f83387797c..5c21ce928a 100644
--- a/packages/language-pack/console-translation-2.8.babel
+++ b/packages/language-pack/console-translation-2.8.babel
@@ -45003,6 +45003,27 @@
+
+ MAX_LENGTH_INVALID
+ false
+
+
+
+
+
+ en-US
+ true
+
+
+ ja-JP
+ true
+
+
+ ko-KR
+ true
+
+
+
MONTHLY
false
diff --git a/packages/language-pack/en.json b/packages/language-pack/en.json
index 08d4f3e168..578ed1f9b4 100644
--- a/packages/language-pack/en.json
+++ b/packages/language-pack/en.json
@@ -2520,6 +2520,7 @@
"TITLE": "Get stared with Asset Analysis",
"UPCOMING": "Upcoming"
},
+ "MAX_LENGTH_INVALID": "{max} characters in max.",
"MONTHLY": "Monthly",
"NAME": "Name",
"NAME_DUPLICATED": "Name is duplicated.",
diff --git a/packages/language-pack/ja.json b/packages/language-pack/ja.json
index 7bef02648e..53f3c414dc 100644
--- a/packages/language-pack/ja.json
+++ b/packages/language-pack/ja.json
@@ -2520,6 +2520,7 @@
"TITLE": "リソース分析を開始する",
"UPCOMING": "今後の"
},
+ "MAX_LENGTH_INVALID": "{max}文字以内で入力してください",
"MONTHLY": "月別データ",
"NAME": "名前",
"NAME_DUPLICATED": "重複した名前です。",
diff --git a/packages/language-pack/ko.json b/packages/language-pack/ko.json
index 8478bfc625..cf314c6af1 100644
--- a/packages/language-pack/ko.json
+++ b/packages/language-pack/ko.json
@@ -2520,6 +2520,7 @@
"TITLE": "리소스 분석 시작하기",
"UPCOMING": "지원 예정"
},
+ "MAX_LENGTH_INVALID": "{max}자 이하로 입력해 주세요.",
"MONTHLY": "월별 데이터",
"NAME": "이름",
"NAME_DUPLICATED": "중복된 이름입니다.",