Merge "fix: fix the data showing if not matched"
This commit is contained in:
commit
24b7c3a52b
@ -204,7 +204,7 @@ English | [Chinese](../../zh/develop/3-1-BaseList-introduction.md)
|
|||||||
title: t('Use Type'),
|
title: t('Use Type'),
|
||||||
dataIndex: 'usage_type',
|
dataIndex: 'usage_type',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => imageUsage[value] || '-',
|
render: (value) => imageUsage[value] || value,
|
||||||
sorter: false,
|
sorter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -218,19 +218,19 @@ English | [Chinese](../../zh/develop/3-1-BaseList-introduction.md)
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => imageStatus[value] || '-',
|
render: (value) => imageStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Visibility'),
|
title: t('Visibility'),
|
||||||
dataIndex: 'visibility',
|
dataIndex: 'visibility',
|
||||||
render: (value) => imageVisibility[value] || '-',
|
render: (value) => imageVisibility[value] || value,
|
||||||
sorter: false,
|
sorter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Disk Format'),
|
title: t('Disk Format'),
|
||||||
dataIndex: 'disk_format',
|
dataIndex: 'disk_format',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => imageFormats[value] || '-',
|
render: (value) => imageFormats[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Size'),
|
title: t('Size'),
|
||||||
|
@ -140,7 +140,7 @@ English | [Chinese](../../zh/develop/3-3-BaseDetail-introduction.md)
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Size'),
|
title: t('Size'),
|
||||||
|
@ -204,7 +204,7 @@
|
|||||||
title: t('Use Type'),
|
title: t('Use Type'),
|
||||||
dataIndex: 'usage_type',
|
dataIndex: 'usage_type',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => imageUsage[value] || '-',
|
render: (value) => imageUsage[value] || value,
|
||||||
sorter: false,
|
sorter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -218,19 +218,19 @@
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => imageStatus[value] || '-',
|
render: (value) => imageStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Visibility'),
|
title: t('Visibility'),
|
||||||
dataIndex: 'visibility',
|
dataIndex: 'visibility',
|
||||||
render: (value) => imageVisibility[value] || '-',
|
render: (value) => imageVisibility[value] || value,
|
||||||
sorter: false,
|
sorter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Disk Format'),
|
title: t('Disk Format'),
|
||||||
dataIndex: 'disk_format',
|
dataIndex: 'disk_format',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => imageFormats[value] || '-',
|
render: (value) => imageFormats[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Size'),
|
title: t('Size'),
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Size'),
|
title: t('Size'),
|
||||||
|
@ -43,7 +43,7 @@ export default function PopoverNetworks(props) {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => networkStatus[value] || '-',
|
render: (value) => networkStatus[value] || value,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
return <IPopover columns={columns} getRequests={getRequests} />;
|
return <IPopover columns={columns} getRequests={getRequests} />;
|
||||||
|
@ -227,17 +227,17 @@ export class BaseDetail extends Base {
|
|||||||
{
|
{
|
||||||
label: t('CPU Policy'),
|
label: t('CPU Policy'),
|
||||||
dataIndex: 'hw:cpu_policy',
|
dataIndex: 'hw:cpu_policy',
|
||||||
render: (value) => cpuPolicyList[value] || '-',
|
render: (value) => cpuPolicyList[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('CPU Thread Policy'),
|
label: t('CPU Thread Policy'),
|
||||||
dataIndex: 'hw:cpu_thread_policy',
|
dataIndex: 'hw:cpu_thread_policy',
|
||||||
render: (value) => cpuThreadPolicyMap[value] || '-',
|
render: (value) => cpuThreadPolicyMap[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('Memory Page Size'),
|
label: t('Memory Page Size'),
|
||||||
dataIndex: 'hw:mem_page_size',
|
dataIndex: 'hw:mem_page_size',
|
||||||
render: (value) => pageTypeMap[value] || '-',
|
render: (value) => pageTypeMap[value] || value,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const options = [...numa, ...others];
|
const options = [...numa, ...others];
|
||||||
|
@ -109,7 +109,7 @@ export class ManageHost extends ModalAction {
|
|||||||
title: t('Admin Status'),
|
title: t('Admin Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => serviceStatus[value] || '-',
|
render: (value) => serviceStatus[value] || value,
|
||||||
tip: (value, record) => {
|
tip: (value, record) => {
|
||||||
const { disabled_reason } = record || {};
|
const { disabled_reason } = record || {};
|
||||||
if (disabled_reason) {
|
if (disabled_reason) {
|
||||||
@ -122,7 +122,7 @@ export class ManageHost extends ModalAction {
|
|||||||
title: t('State'),
|
title: t('State'),
|
||||||
dataIndex: 'state',
|
dataIndex: 'state',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => serviceState[value] || '-',
|
render: (value) => serviceState[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Last Updated'),
|
title: t('Last Updated'),
|
||||||
|
@ -61,7 +61,7 @@ export class ComputeHost extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Service Status'),
|
title: t('Service Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => serviceStatus[value] || '-',
|
render: (value) => serviceStatus[value] || value,
|
||||||
tip: (value, record) => {
|
tip: (value, record) => {
|
||||||
const { disabled_reason } = record || {};
|
const { disabled_reason } = record || {};
|
||||||
if (disabled_reason) {
|
if (disabled_reason) {
|
||||||
@ -73,7 +73,7 @@ export class ComputeHost extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Service State'),
|
title: t('Service State'),
|
||||||
dataIndex: 'state',
|
dataIndex: 'state',
|
||||||
render: (value) => serviceState[value] || '-',
|
render: (value) => serviceState[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Last Updated'),
|
title: t('Last Updated'),
|
||||||
|
@ -60,7 +60,7 @@ export class BaseDetail extends Base {
|
|||||||
{
|
{
|
||||||
label: t('OS'),
|
label: t('OS'),
|
||||||
dataIndex: 'os_distro',
|
dataIndex: 'os_distro',
|
||||||
render: (value) => imageOS[value] || '-',
|
render: (value) => imageOS[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('OS Version'),
|
label: t('OS Version'),
|
||||||
@ -93,7 +93,7 @@ export class BaseDetail extends Base {
|
|||||||
{
|
{
|
||||||
label: t('Visibility'),
|
label: t('Visibility'),
|
||||||
dataIndex: 'visibility',
|
dataIndex: 'visibility',
|
||||||
render: (value) => imageVisibility[value] || '-',
|
render: (value) => imageVisibility[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t('Protected'),
|
label: t('Protected'),
|
||||||
|
@ -138,7 +138,7 @@ export class Image extends Base {
|
|||||||
title: t('Use Type'),
|
title: t('Use Type'),
|
||||||
dataIndex: 'usage_type',
|
dataIndex: 'usage_type',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => imageUsage[value] || '-',
|
render: (value) => imageUsage[value] || value,
|
||||||
sorter: false,
|
sorter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -152,19 +152,19 @@ export class Image extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => imageStatus[value] || '-',
|
render: (value) => imageStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Visibility'),
|
title: t('Visibility'),
|
||||||
dataIndex: 'visibility',
|
dataIndex: 'visibility',
|
||||||
render: (value) => imageVisibility[value] || '-',
|
render: (value) => imageVisibility[value] || value,
|
||||||
sorter: false,
|
sorter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Disk Format'),
|
title: t('Disk Format'),
|
||||||
dataIndex: 'disk_format',
|
dataIndex: 'disk_format',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => imageFormats[value] || '-',
|
render: (value) => imageFormats[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Size'),
|
title: t('Size'),
|
||||||
|
@ -118,7 +118,7 @@ export class DetachInterface extends ModalAction {
|
|||||||
{
|
{
|
||||||
title: t('State'),
|
title: t('State'),
|
||||||
dataIndex: 'port_state',
|
dataIndex: 'port_state',
|
||||||
render: (value) => portStatus[value] || '-',
|
render: (value) => portStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Mac Address'),
|
title: t('Mac Address'),
|
||||||
|
@ -105,7 +105,7 @@ export class DetachVolume extends ModalAction {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Type'),
|
title: t('Type'),
|
||||||
|
@ -483,7 +483,7 @@ export class BaseStep extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Disk Format'),
|
title: t('Disk Format'),
|
||||||
dataIndex: 'disk_format',
|
dataIndex: 'disk_format',
|
||||||
render: (value) => imageFormats[value] || '-',
|
render: (value) => imageFormats[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Min System Disk'),
|
title: t('Min System Disk'),
|
||||||
@ -498,7 +498,7 @@ export class BaseStep extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => imageStatus[value] || '-',
|
render: (value) => imageStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
@ -524,7 +524,7 @@ export class BaseStep extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
width: 80,
|
width: 80,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -408,7 +408,7 @@ export class SystemStep extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Policy'),
|
title: t('Policy'),
|
||||||
dataIndex: 'policy',
|
dataIndex: 'policy',
|
||||||
render: (value) => policyType[value] || '-',
|
render: (value) => policyType[value] || value,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
filterParams: [
|
filterParams: [
|
||||||
|
@ -52,7 +52,7 @@ export class ServerGroupDetail extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Policy'),
|
title: t('Policy'),
|
||||||
dataIndex: 'policy',
|
dataIndex: 'policy',
|
||||||
render: (value) => policyType[value] || '-',
|
render: (value) => policyType[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Member Count'),
|
title: t('Member Count'),
|
||||||
|
@ -60,7 +60,7 @@ export class ServerGroup extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Policy'),
|
title: t('Policy'),
|
||||||
dataIndex: 'policy',
|
dataIndex: 'policy',
|
||||||
render: (value) => policyType[value] || '-',
|
render: (value) => policyType[value] || value,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ export class CinderService extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Service Status'),
|
title: t('Service Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => serviceStatus[value] || '-',
|
render: (value) => serviceStatus[value] || value,
|
||||||
tip: (value, record) => {
|
tip: (value, record) => {
|
||||||
if (value === 'enabled') {
|
if (value === 'enabled') {
|
||||||
return '';
|
return '';
|
||||||
@ -77,7 +77,7 @@ export class CinderService extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Service State'),
|
title: t('Service State'),
|
||||||
dataIndex: 'state',
|
dataIndex: 'state',
|
||||||
render: (value) => serviceState[value] || '-',
|
render: (value) => serviceState[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Last Updated'),
|
title: t('Last Updated'),
|
||||||
|
@ -62,7 +62,7 @@ export class ComputeService extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Service Status'),
|
title: t('Service Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => serviceStatus[value] || '-',
|
render: (value) => serviceStatus[value] || value,
|
||||||
tip: (value, record) => {
|
tip: (value, record) => {
|
||||||
const { disabled_reason } = record || {};
|
const { disabled_reason } = record || {};
|
||||||
if (disabled_reason) {
|
if (disabled_reason) {
|
||||||
@ -74,7 +74,7 @@ export class ComputeService extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Service State'),
|
title: t('Service State'),
|
||||||
dataIndex: 'state',
|
dataIndex: 'state',
|
||||||
render: (value) => serviceState[value] || '-',
|
render: (value) => serviceState[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Last Updated'),
|
title: t('Last Updated'),
|
||||||
|
@ -57,7 +57,7 @@ export class HeatService extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => serviceState[value] || '-',
|
render: (value) => serviceState[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Last Updated'),
|
title: t('Last Updated'),
|
||||||
|
@ -258,7 +258,7 @@ export class FloatingIps extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => floatingIpStatus[value] || '-',
|
render: (value) => floatingIpStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
|
@ -115,7 +115,7 @@ export class Subnets extends Base {
|
|||||||
{
|
{
|
||||||
// title: t('Status'),
|
// title: t('Status'),
|
||||||
// dataIndex: 'status',
|
// dataIndex: 'status',
|
||||||
// render: value => networkStatus[value] || '-',
|
// render: value => networkStatus[value] || value,
|
||||||
// isHideable: true,
|
// isHideable: true,
|
||||||
// }, {
|
// }, {
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
|
@ -146,7 +146,7 @@ export class BaseDetail extends Base {
|
|||||||
{
|
{
|
||||||
label: t('VNIC Type'),
|
label: t('VNIC Type'),
|
||||||
dataIndex: 'binding__vnic_type',
|
dataIndex: 'binding__vnic_type',
|
||||||
render: (value) => bindingTypes[value] || '-',
|
render: (value) => bindingTypes[value] || value,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
if (this.detailData.binding__host_id) {
|
if (this.detailData.binding__host_id) {
|
||||||
|
@ -89,7 +89,7 @@ export class Ports extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => portStatus[value] || '-',
|
render: (value) => portStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
|
@ -181,7 +181,7 @@ export class Create extends ModalAction {
|
|||||||
{
|
{
|
||||||
title: t('State'),
|
title: t('State'),
|
||||||
dataIndex: 'state',
|
dataIndex: 'state',
|
||||||
render: (value) => availabilityZoneState[value] || '-',
|
render: (value) => availabilityZoneState[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Resource Type'),
|
title: t('Resource Type'),
|
||||||
@ -218,7 +218,7 @@ export class Create extends ModalAction {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => networkStatus[value] || '-',
|
render: (value) => networkStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
|
@ -73,7 +73,7 @@ export class SetGateway extends ModalAction {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => networkStatus[value] || '-',
|
render: (value) => networkStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
|
@ -67,7 +67,7 @@ export default class NodeCard extends React.Component {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => routerStatus[value] || '-',
|
render: (value) => routerStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('External Fixed IP'),
|
title: t('External Fixed IP'),
|
||||||
|
@ -57,7 +57,7 @@ export class BaseDetail extends Base {
|
|||||||
{
|
{
|
||||||
label: t('VNIC Type'),
|
label: t('VNIC Type'),
|
||||||
dataIndex: 'binding:vnic_type',
|
dataIndex: 'binding:vnic_type',
|
||||||
render: (value) => bindingTypes[value] || '-',
|
render: (value) => bindingTypes[value] || value,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
if (this.qosEndpoint) {
|
if (this.qosEndpoint) {
|
||||||
|
@ -66,7 +66,7 @@ export class Detail extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => backupStatus[value] || '-',
|
render: (value) => backupStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Project ID'),
|
title: t('Project ID'),
|
||||||
|
@ -105,7 +105,7 @@ export class Backup extends Base {
|
|||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => backupStatus[value] || '-',
|
render: (value) => backupStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
|
@ -112,7 +112,7 @@ export class Snapshots extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Volume ID/Name'),
|
title: t('Volume ID/Name'),
|
||||||
|
@ -63,7 +63,7 @@ export class VolumeDetail extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Size'),
|
title: t('Size'),
|
||||||
|
@ -468,7 +468,7 @@ export class Create extends FormAction {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Description'),
|
title: t('Description'),
|
||||||
|
@ -84,7 +84,7 @@ export class RestoreAction extends ModalAction {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
|
@ -49,7 +49,7 @@ export class Detail extends Base {
|
|||||||
{
|
{
|
||||||
title: t('Consumer'),
|
title: t('Consumer'),
|
||||||
dataIndex: 'consumer',
|
dataIndex: 'consumer',
|
||||||
render: (value) => consumerTypes[value] || '-',
|
render: (value) => consumerTypes[value] || value,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ export class QosSpecs extends Base {
|
|||||||
title: t('Consumer'),
|
title: t('Consumer'),
|
||||||
dataIndex: 'consumer',
|
dataIndex: 'consumer',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => consumerTypes[value] || '-',
|
render: (value) => consumerTypes[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Specs'),
|
title: t('Specs'),
|
||||||
|
@ -93,7 +93,7 @@ export class ManageQos extends ModalAction {
|
|||||||
{
|
{
|
||||||
title: t('Consumer'),
|
title: t('Consumer'),
|
||||||
dataIndex: 'consumer',
|
dataIndex: 'consumer',
|
||||||
render: (value) => consumerTypes[value] || '-',
|
render: (value) => consumerTypes[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Specs'),
|
title: t('Specs'),
|
||||||
|
@ -167,7 +167,7 @@ export const volumeColumns = [
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Shared'),
|
title: t('Shared'),
|
||||||
@ -277,7 +277,7 @@ export const getVolumeColumnsList = (self) => {
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => volumeStatus[value] || '-',
|
render: (value) => volumeStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Type'),
|
title: t('Type'),
|
||||||
@ -290,7 +290,7 @@ export const getVolumeColumnsList = (self) => {
|
|||||||
title: t('Disk Tag'),
|
title: t('Disk Tag'),
|
||||||
dataIndex: 'disk_tag',
|
dataIndex: 'disk_tag',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => diskTag[value] || '-',
|
render: (value) => diskTag[value] || value,
|
||||||
sorter: false,
|
sorter: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -330,7 +330,7 @@ export const getVolumeColumnsList = (self) => {
|
|||||||
),
|
),
|
||||||
dataIndex: 'bootable',
|
dataIndex: 'bootable',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => bootableType[value] || '-',
|
render: (value) => bootableType[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Shared'),
|
title: t('Shared'),
|
||||||
|
@ -208,12 +208,12 @@ export const getImageColumns = (self) => [
|
|||||||
{
|
{
|
||||||
title: t('Access Control'),
|
title: t('Access Control'),
|
||||||
dataIndex: 'visibility',
|
dataIndex: 'visibility',
|
||||||
render: (value) => imageVisibility[value] || '-',
|
render: (value) => imageVisibility[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Format'),
|
title: t('Format'),
|
||||||
dataIndex: 'disk_format',
|
dataIndex: 'disk_format',
|
||||||
render: (value) => imageFormats[value] || '-',
|
render: (value) => imageFormats[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Image Size'),
|
title: t('Image Size'),
|
||||||
|
@ -37,12 +37,12 @@ export const getBaseSnapshotColumns = (self) => [
|
|||||||
title: t('Disk Format'),
|
title: t('Disk Format'),
|
||||||
dataIndex: 'disk_format',
|
dataIndex: 'disk_format',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => imageFormats[value] || '-',
|
render: (value) => imageFormats[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => imageStatus[value] || '-',
|
render: (value) => imageStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
|
@ -55,7 +55,7 @@ export const networkColumns = (self) => [
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => networkStatus[value] || '-',
|
render: (value) => networkStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Subnet Count'),
|
title: t('Subnet Count'),
|
||||||
|
@ -48,7 +48,7 @@ export const getRouterColumns = (self) => [
|
|||||||
{
|
{
|
||||||
title: t('Status'),
|
title: t('Status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
render: (value) => routerStatus[value] || '-',
|
render: (value) => routerStatus[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Open External Gateway'),
|
title: t('Open External Gateway'),
|
||||||
|
@ -59,7 +59,7 @@ export const getSelfColumns = (self) => [
|
|||||||
{
|
{
|
||||||
title: t('Direction'),
|
title: t('Direction'),
|
||||||
dataIndex: 'direction',
|
dataIndex: 'direction',
|
||||||
render: (value) => directions[value] || '-',
|
render: (value) => directions[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Ether Type'),
|
title: t('Ether Type'),
|
||||||
|
@ -224,19 +224,19 @@ export const gpuColumns = [
|
|||||||
title: t('CPU Policy'),
|
title: t('CPU Policy'),
|
||||||
dataIndex: 'hw:cpu_policy',
|
dataIndex: 'hw:cpu_policy',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => cpuPolicyList[value] || '-',
|
render: (value) => cpuPolicyList[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('CPU Thread Policy'),
|
title: t('CPU Thread Policy'),
|
||||||
dataIndex: 'hw:cpu_thread_policy',
|
dataIndex: 'hw:cpu_thread_policy',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => cpuThreadPolicyMap[value] || '-',
|
render: (value) => cpuThreadPolicyMap[value] || value,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('Memory Page'),
|
title: t('Memory Page'),
|
||||||
dataIndex: 'hw:mem_page_size',
|
dataIndex: 'hw:mem_page_size',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
render: (value) => pageTypeMap[value] || '-',
|
render: (value) => pageTypeMap[value] || value,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user