Merge "feature: add backup status show"

This commit is contained in:
Zuul 2021-09-28 09:01:35 +00:00 committed by Gerrit Code Review
commit e43612a39a
2 changed files with 13 additions and 0 deletions

View File

@ -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',

View File

@ -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',