fix(xo-web/new-vm): handle both template_info.disks and VDIs
Related to 3be45c7f4
This commit is contained in:
parent
1c43c9e258
commit
5d82f2696e
@ -300,7 +300,7 @@ export default class NewVm extends BaseComponent {
|
|||||||
|
|
||||||
get _isDiskTemplate() {
|
get _isDiskTemplate() {
|
||||||
const { template } = this.props
|
const { template } = this.props
|
||||||
return template && template.template_info.disks.length === 0 && template.name_label !== 'Other install media'
|
return template && template.$VBDs.length !== 0 && template.name_label !== 'Other install media'
|
||||||
}
|
}
|
||||||
_setState = (newValues, callback) => {
|
_setState = (newValues, callback) => {
|
||||||
this.setState(
|
this.setState(
|
||||||
|
Loading…
Reference in New Issue
Block a user