ui: printPropertyString: skip empty string values

This cannot work anyway, and it simplifies some editors for
format-string backed properties, like the upcoming u2f settings
integration.

If such a value was passed to the backend one would get:
> invalid format - missing key in comma-separated list property

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-11-26 16:58:18 +01:00
parent f6b2b1708f
commit 08e38f032d

View File

@ -86,7 +86,7 @@ Ext.define('PVE.Parser', { statics: {
if (defaultKey !== undefined && key === defaultKey) {
gotDefaultKeyVal = true;
defaultKeyVal = value;
} else {
} else if (value !== '') {
stringparts.push(key + '=' + value);
}
});