Merge "feat: Update flavor detail page"
This commit is contained in:
commit
d884b0ba6e
@ -1178,7 +1178,7 @@
|
||||
"Memory": "Memory",
|
||||
"Memory Optimized": "Memory Optimized",
|
||||
"Memory Page": "Memory Page",
|
||||
"Memory Page Value": "Memory Page Value",
|
||||
"Memory Page Size": "Memory Page Size",
|
||||
"Memory Usage": "Memory Usage",
|
||||
"Memory usage Num (GB": "Memory usage Num (GB",
|
||||
"Message": "Message",
|
||||
|
@ -104,7 +104,7 @@
|
||||
"Anti-affinity (mandatory):": "反亲和(强制):",
|
||||
"Anti-affinity (not mandatory):": "反亲和 (非强制):",
|
||||
"Antigua and Barbuda": "安提瓜和巴布达",
|
||||
"Any": "",
|
||||
"Any": "任意",
|
||||
"Any(Random)": "任意(随机)",
|
||||
"Application Credentials": "应用凭证",
|
||||
"Application Template": "应用模板",
|
||||
@ -1178,7 +1178,7 @@
|
||||
"Memory": "内存",
|
||||
"Memory Optimized": "内存型",
|
||||
"Memory Page": "内存页",
|
||||
"Memory Page Value": "内存页值",
|
||||
"Memory Page Size": "内存页大小",
|
||||
"Memory Usage": "内存使用量",
|
||||
"Memory usage Num (GB": "内存用量 (GB)",
|
||||
"Message": "消息",
|
||||
|
@ -100,6 +100,7 @@ export default class BaseDetail extends Base {
|
||||
const { category, architecture } = this.detailData;
|
||||
const hasIOPS = categoryHasIOPS(category);
|
||||
const hasEphemeral = categoryHasEphemeral(category);
|
||||
const typeIsComputeOptimized = isComputeOptimized(category);
|
||||
if (isBareMetal(architecture)) {
|
||||
return this.getBareMetalCard();
|
||||
}
|
||||
@ -133,6 +134,18 @@ export default class BaseDetail extends Base {
|
||||
},
|
||||
});
|
||||
}
|
||||
if (!typeIsComputeOptimized) {
|
||||
const numaItem = {
|
||||
label: t('NUMA Node Count'),
|
||||
dataIndex: 'hw:numa_nodes',
|
||||
};
|
||||
const memPageItem = {
|
||||
label: t('Memory Page Size'),
|
||||
dataIndex: 'hw:mem_page_size',
|
||||
render: (value) => (value && pageTypeMap[value]) || value || '-',
|
||||
};
|
||||
options.push(...[numaItem, memPageItem]);
|
||||
}
|
||||
|
||||
return {
|
||||
title: t('Base Info'),
|
||||
@ -224,7 +237,7 @@ export default class BaseDetail extends Base {
|
||||
render: (value) => cpuThreadPolicyMap[value] || '-',
|
||||
},
|
||||
{
|
||||
label: t('Memory Page'),
|
||||
label: t('Memory Page Size'),
|
||||
dataIndex: 'hw:mem_page_size',
|
||||
render: (value) => pageTypeMap[value] || '-',
|
||||
},
|
||||
|
@ -414,7 +414,7 @@ export class ParamSetting extends Base {
|
||||
},
|
||||
{
|
||||
name: 'memPageSizeValueMore',
|
||||
label: t('Memory Page Value'),
|
||||
label: t('Memory Page Size'),
|
||||
type: 'input',
|
||||
hidden: !showPageSizeInputMore,
|
||||
required: showPageSizeInputMore,
|
||||
@ -499,7 +499,7 @@ export class ParamSetting extends Base {
|
||||
},
|
||||
{
|
||||
name: 'memPageSizeValue',
|
||||
label: t('Memory Page Value'),
|
||||
label: t('Memory Page Size'),
|
||||
type: 'input',
|
||||
hidden: !showPageSizeInput,
|
||||
required: showPageSizeInput,
|
||||
|
Loading…
Reference in New Issue
Block a user