diff --git a/src/components/Wizard/CreateVmWizard/NetworksTab.js b/src/components/Wizard/CreateVmWizard/NetworksTab.js index 9ed113f2a..9659b2045 100644 --- a/src/components/Wizard/CreateVmWizard/NetworksTab.js +++ b/src/components/Wizard/CreateVmWizard/NetworksTab.js @@ -18,7 +18,7 @@ import { PXE_INFO, ERROR_NETWORK_NOT_SELECTED, ERROR_EMPTY_ENTITY, - ERROR_EMPTY_NAME, + NETWORK_ERROR_EMPTY_NAME, ERROR_NETWORK_NOT_FOUND, PXE_NIC, HEADER_MAC, @@ -37,7 +37,7 @@ const validateNetwork = network => { } if (!network.name) { - errors[1] = ERROR_EMPTY_NAME; + errors[1] = NETWORK_ERROR_EMPTY_NAME; } if (network.id !== 1 && !network.network) { diff --git a/src/components/Wizard/CreateVmWizard/strings.js b/src/components/Wizard/CreateVmWizard/strings.js index cd78e7c2a..f9bc9220b 100644 --- a/src/components/Wizard/CreateVmWizard/strings.js +++ b/src/components/Wizard/CreateVmWizard/strings.js @@ -14,7 +14,6 @@ export const STEP_STORAGE = 'Storage'; export const STEP_RESULT = 'Result'; export const NEXT = 'Next'; export const ERROR_EMPTY_ENTITY = 'Empty entity'; -export const ERROR_EMPTY_NAME = 'Name is empty'; export const ERROR_IS_REQUIRED = 'is required'; // VmSettingsTab @@ -55,6 +54,7 @@ export const HEADER_NETWORK = 'Network Configuration'; export const ERROR_NETWORK_NOT_FOUND = 'Network config not found'; export const ERROR_NETWORK_NOT_SELECTED = 'Network config must be selected'; export const HEADER_BINDING_METHOD = 'Binding method'; +export const NETWORK_ERROR_EMPTY_NAME = 'Network name cannot be empty'; // StorageTab export const ERROR_NO_BOOTABLE_DISK = 'A bootable disk could not be found';