1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #~: Fix array user inputs sep ';' in fireedge (#1120)

(cherry picked from commit 204fb068d38b53a4e5f623e13a1f0b81569f5a48)
This commit is contained in:
Sergio Betanzos 2021-04-21 12:01:02 +02:00 committed by Ruben S. Montero
parent b4d71562a5
commit 95a5a1dbfe
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -9,7 +9,7 @@ const requiredSchema = (mandatory, name, schema) =>
const getRange = (options) =>
options.split('..').map(option => parseFloat(option))
const getValuesFromArray = (options, separator = ',') => options?.split(separator)
const getValuesFromArray = (options, separator = ';') => options?.split(separator)
const getOptionsFromList = (options, separator = ',') =>
options?.split(separator).map(value => ({ text: value, value }))