feat(xo-web/new-vm): dont prefill VM description (#5047)

Fixes #4981

Except if the template is a custom template
This commit is contained in:
Pierre Donias
2020-06-05 14:52:31 +02:00
committed by GitHub
parent 703fcbccd6
commit 1cbd715235

View File

@@ -593,7 +593,10 @@ export default class NewVm extends BaseComponent {
: state.name_label
const name_description =
state.name_description === '' || !state.name_descriptionHasChanged
? template.name_description || ''
? template.other.default_template === 'true' ||
template.name_description === undefined
? ''
: template.name_description
: state.name_description
const replacer = this._buildVmsNameTemplate()
this._setState({