fix: Fix stack template && filter

1. Fix stack template in detail page
2. Fix stack search filter

Change-Id: I37d53a700e63e19b57f2965ccbd1ca200720638e
This commit is contained in:
zhangjingwei 2021-08-13 09:00:55 +08:00 committed by Jingwei.Zhang
parent a33636340d
commit b1805a9869
2 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export default class Template extends Component {
};
renderContent = () => {
const { template = {} } = this.store;
const { template } = this.store;
const content = yaml.dump(template);
const props = {
value: content,

View File

@ -102,6 +102,10 @@ export default class Stack extends Base {
'CREATE_FAILED',
'ROLLBACK_COMPLETE',
'ROLLBACK_FAILED',
'UPDATE_COMPLETE',
'UPDATE_FAILED',
'DELETE_COMPLETE',
'DELETE_FAILED',
];
const options = statuses.map((status) => ({
key: status,