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