From 1d2cc435a04ffcd2807a02def8f0e0c89cb69bf9 Mon Sep 17 00:00:00 2001 From: zhuyue Date: Tue, 28 Sep 2021 13:50:29 +0800 Subject: [PATCH] feature: add backup status show add backup status show Change-Id: I2526904b511ef2c9b674618077a296f1101536b1 --- src/pages/storage/containers/Backup/Detail/index.jsx | 6 ++++++ src/pages/storage/containers/Backup/index.jsx | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/pages/storage/containers/Backup/Detail/index.jsx b/src/pages/storage/containers/Backup/Detail/index.jsx index 94e14c7a..d2a5d9f2 100644 --- a/src/pages/storage/containers/Backup/Detail/index.jsx +++ b/src/pages/storage/containers/Backup/Detail/index.jsx @@ -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', diff --git a/src/pages/storage/containers/Backup/index.jsx b/src/pages/storage/containers/Backup/index.jsx index 00c0f740..2110309d 100644 --- a/src/pages/storage/containers/Backup/index.jsx +++ b/src/pages/storage/containers/Backup/index.jsx @@ -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',