fix: fix image required when create ironic
1. Set image is required when create ironic 2. Add image info in confirm step when create ironic Change-Id: I57de4e5317aab2ee96e012327bb9a5a79f5e7656
This commit is contained in:
parent
3544b35a5b
commit
e9cd1482c2
@ -191,7 +191,7 @@ export class BaseStep extends Base {
|
||||
type: 'select-table',
|
||||
data: this.images,
|
||||
isLoading: imageLoading,
|
||||
isMulti: false,
|
||||
required: true,
|
||||
filterParams: [
|
||||
{
|
||||
label: t('Name'),
|
||||
|
@ -39,8 +39,7 @@ export class ConfirmStep extends Base {
|
||||
|
||||
getSourceValue() {
|
||||
const { context } = this.props;
|
||||
const { source } = context;
|
||||
const { selectedRows = [], selectedRowKeys = [] } = context[source.value];
|
||||
const { selectedRows = [], selectedRowKeys = [] } = context.image;
|
||||
return selectedRows.length ? selectedRows[0].name : selectedRowKeys[0];
|
||||
}
|
||||
|
||||
@ -116,6 +115,10 @@ export class ConfirmStep extends Base {
|
||||
label: t('Flavor'),
|
||||
value: this.getFlavor(),
|
||||
},
|
||||
{
|
||||
label: t('Image Name'),
|
||||
value: this.getSourceValue(),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user