[pmg-devel] [PATCH pmg-gui 3/3] show emptyText when no users are available to select

Dominik Csapak d.csapak at proxmox.com
Tue Feb 26 09:12:39 CET 2019


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 js/UserBlackWhiteList.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/js/UserBlackWhiteList.js b/js/UserBlackWhiteList.js
index 406350e..c103d54 100644
--- a/js/UserBlackWhiteList.js
+++ b/js/UserBlackWhiteList.js
@@ -149,6 +149,12 @@ Ext.define('PMG.UserBlackWhiteList', {
 	    editable: true,
 	    reference: 'email',
 	    name: 'email',
+	    listConfig: {
+		emptyText:
+		'<div class="x-grid-empty">' +
+		gettext('No data in database') +
+		'</div>'
+	    },
 	    fieldLabel: 'E-Mail'
 	},
 	{
-- 
2.11.0




More information about the pmg-devel mailing list