feature: add backup status show
add backup status show Change-Id: I2526904b511ef2c9b674618077a296f1101536b1
This commit is contained in:
parent
91c6869b25
commit
1d2cc435a0
@ -15,6 +15,7 @@
|
|||||||
import { inject, observer } from 'mobx-react';
|
import { inject, observer } from 'mobx-react';
|
||||||
import globalBackupStore from 'stores/cinder/backup';
|
import globalBackupStore from 'stores/cinder/backup';
|
||||||
import Base from 'containers/TabDetail';
|
import Base from 'containers/TabDetail';
|
||||||
|
import { backupStatus } from 'resources/backup';
|
||||||
import BaseDetail from './BaseDetail';
|
import BaseDetail from './BaseDetail';
|
||||||
import actionConfigs from '../actions';
|
import actionConfigs from '../actions';
|
||||||
|
|
||||||
@ -64,6 +65,11 @@ export default class Detail extends Base {
|
|||||||
title: t('Description'),
|
title: t('Description'),
|
||||||
dataIndex: 'description',
|
dataIndex: 'description',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: t('Status'),
|
||||||
|
dataIndex: 'status',
|
||||||
|
render: (value) => backupStatus[value] || '-',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: t('Project ID'),
|
title: t('Project ID'),
|
||||||
dataIndex: 'project_id',
|
dataIndex: 'project_id',
|
||||||
|
@ -16,6 +16,7 @@ import { observer, inject } from 'mobx-react';
|
|||||||
import Base from 'containers/List';
|
import Base from 'containers/List';
|
||||||
import globalBackupStore, { BackupStore } from 'stores/cinder/backup';
|
import globalBackupStore, { BackupStore } from 'stores/cinder/backup';
|
||||||
import CreateBackup from 'pages/storage/containers/Volume/actions/CreateBackup';
|
import CreateBackup from 'pages/storage/containers/Volume/actions/CreateBackup';
|
||||||
|
import { backupStatus } from 'resources/backup';
|
||||||
import actionConfigs from './actions';
|
import actionConfigs from './actions';
|
||||||
|
|
||||||
@inject('rootStore')
|
@inject('rootStore')
|
||||||
@ -101,6 +102,12 @@ export default class Backup extends Base {
|
|||||||
},
|
},
|
||||||
sorter: false,
|
sorter: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: t('Status'),
|
||||||
|
dataIndex: 'status',
|
||||||
|
isHideable: true,
|
||||||
|
render: (value) => backupStatus[value] || '-',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: t('Created At'),
|
title: t('Created At'),
|
||||||
dataIndex: 'created_at',
|
dataIndex: 'created_at',
|
||||||
|
Loading…
Reference in New Issue
Block a user