[pve-devel] [PATCH manager 24/49] use LanguageSelector from widget toolkit

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jan 23 11:05:41 CET 2018


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/Makefile                 | 1 -
 www/manager6/form/LanguageSelector.js | 5 -----
 www/manager6/window/LoginWindow.js    | 2 +-
 3 files changed, 1 insertion(+), 7 deletions(-)
 delete mode 100644 www/manager6/form/LanguageSelector.js

diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 4a3eafb2..31a7e317 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -51,7 +51,6 @@ JSSRC= 				                 	\
 	form/IPProtocolSelector.js			\
 	form/CPUModelSelector.js			\
 	form/VNCKeyboardSelector.js			\
-	form/LanguageSelector.js			\
 	form/DisplaySelector.js				\
 	form/CacheTypeSelector.js			\
 	form/SnapshotSelector.js			\
diff --git a/www/manager6/form/LanguageSelector.js b/www/manager6/form/LanguageSelector.js
deleted file mode 100644
index 98588636..00000000
--- a/www/manager6/form/LanguageSelector.js
+++ /dev/null
@@ -1,5 +0,0 @@
-Ext.define('PVE.form.LanguageSelector', {
-    extend: 'PVE.form.KVComboBox',
-    alias: ['widget.pveLanguageSelector'],
-    comboItems: Proxmox.Utils.language_array()
-});
diff --git a/www/manager6/window/LoginWindow.js b/www/manager6/window/LoginWindow.js
index 8c08517f..683fb54c 100644
--- a/www/manager6/window/LoginWindow.js
+++ b/www/manager6/window/LoginWindow.js
@@ -162,7 +162,7 @@ Ext.define('PVE.window.LoginWindow', {
 		name: 'realm'
 	    },
 	    {
-		xtype: 'pveLanguageSelector',
+		xtype: 'proxmoxLanguageSelector',
 		fieldLabel: gettext('Language'),
 		value: Ext.util.Cookies.get('PVELangCookie') || 'en',
 		name: 'lang',
-- 
2.14.2





More information about the pve-devel mailing list