[pve-devel] [PATCH manager 2/7] ui: ACME: add emptyText and add minHeight

Dominik Csapak d.csapak at proxmox.com
Thu May 7 10:27:08 CEST 2020


without the minHeight, the panel does resize weirdly on the first load

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/ACMEClusterView.js | 6 ++++++
 www/manager6/node/ACME.js          | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/www/manager6/dc/ACMEClusterView.js b/www/manager6/dc/ACMEClusterView.js
index f3cae866..228d1cf9 100644
--- a/www/manager6/dc/ACMEClusterView.js
+++ b/www/manager6/dc/ACMEClusterView.js
@@ -53,6 +53,9 @@ Ext.define('PVE.dc.ACMEAccountView', {
 	},
     },
 
+    minHeight: 150,
+    emptyText: gettext('No Accounts configured'),
+
     columns: [
 	{
 	    dataIndex: 'name',
@@ -133,6 +136,9 @@ Ext.define('PVE.dc.ACMEPluginView', {
 	},
     },
 
+    minHeight: 150,
+    emptyText: gettext('No Plugins configured'),
+
     columns: [
 	{
 	    dataIndex: 'plugin',
diff --git a/www/manager6/node/ACME.js b/www/manager6/node/ACME.js
index 0b38f9c7..a2ac35f5 100644
--- a/www/manager6/node/ACME.js
+++ b/www/manager6/node/ACME.js
@@ -346,6 +346,8 @@ Ext.define('PVE.node.ACME', {
     margin: '10 0 0 0',
     title: 'ACME',
 
+    emptyText: gettext('No Domains configured'),
+
     viewModel: {
 	data: {
 	    account: undefined,
-- 
2.20.1





More information about the pve-devel mailing list