ui: Parser: add printACME

since we decode the domain list in parseACME into an array, we
have to join them again to a string when printing

otherwise printPropertyString attaches them just with ',' which
does not work here

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-05-06 16:31:09 +02:00 committed by Thomas Lamprecht
parent c00c4207ea
commit 899c4f4538

View File

@ -5,6 +5,13 @@ Ext.define('PVE.Parser', { statics: {
// this class only contains static functions
printACME: function(value) {
if (Ext.isArray(value.domains)) {
value.domains = value.domains.join(';');
}
return PVE.Parser.printPropertyString(value);
},
parseACME: function(value) {
if (!value) {
return;