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