[pve-devel] [PATCH manager 2/5] ui: Parser: add printACME

Dominik Csapak d.csapak at proxmox.com
Wed May 6 14:15:08 CEST 2020


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 at proxmox.com>
---
 www/manager6/Parser.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www/manager6/Parser.js b/www/manager6/Parser.js
index 4cecb3e1..20d81d4a 100644
--- a/www/manager6/Parser.js
+++ b/www/manager6/Parser.js
@@ -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;
-- 
2.20.1





More information about the pve-devel mailing list