[pve-devel] [PATCH 14/18] replace alias by xtype

Dominik Csapak d.csapak at proxmox.com
Tue Apr 4 13:48:54 CEST 2017


this is shorter

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 js/ObjectGroupConfiguration.js | 6 +++---
 js/SystemConfiguration.js      | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/js/ObjectGroupConfiguration.js b/js/ObjectGroupConfiguration.js
index 6e4d33e..291d704 100644
--- a/js/ObjectGroupConfiguration.js
+++ b/js/ObjectGroupConfiguration.js
@@ -69,7 +69,7 @@ Ext.define('PMG.ObjectGroupConfiguration', {
 
 Ext.define('PMG.WhoConfiguration', {
     extend: 'PMG.ObjectGroupConfiguration',
-    alias: 'widget.pmgWhoConfiguration',
+    xtype: 'pmgWhoConfiguration',
 
     ogclass: 'who',
     otype_list: [1000, 1001, 1002, 1003, 1004, 1005, 1006]
@@ -77,7 +77,7 @@ Ext.define('PMG.WhoConfiguration', {
 
 Ext.define('PMG.WhenConfiguration', {
     extend: 'PMG.ObjectGroupConfiguration',
-    alias: 'widget.pmgWhenConfiguration',
+    xtype: 'pmgWhenConfiguration',
 
     ogclass: 'when',
     otype_list: [2000]
@@ -85,7 +85,7 @@ Ext.define('PMG.WhenConfiguration', {
 
 Ext.define('PMG.WhatConfiguration', {
     extend: 'PMG.ObjectGroupConfiguration',
-    alias: 'widget.pmgWhatConfiguration',
+    xtype: 'pmgWhatConfiguration',
 
     ogclass: 'what',
     otype_list: []
diff --git a/js/SystemConfiguration.js b/js/SystemConfiguration.js
index 937ccb4..80a2539 100644
--- a/js/SystemConfiguration.js
+++ b/js/SystemConfiguration.js
@@ -1,6 +1,6 @@
 Ext.define('PMG.SystemConfiguration', {
     extend: 'Ext.tab.Panel',
-    alias: 'widget.pmgSystemConfiguration',
+    xtype: 'pmgSystemConfiguration',
 
     title: gettext('Configuration') + ': ' + gettext('System'),
     border: false,
-- 
2.11.0





More information about the pve-devel mailing list