[pve-devel] [PATCH manager 2/7] ext6migrate: fix ACLView
Dominik Csapak
d.csapak at proxmox.com
Tue Mar 8 11:03:52 CET 2016
the usual (static conf. to class headers, new to Ext.create, new to
xtype)
also we change store.filters.add to store.addFilter since
at this point .filters is null
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/dc/ACLView.js | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/www/manager6/dc/ACLView.js b/www/manager6/dc/ACLView.js
index f151e44..ffaafe2 100644
--- a/www/manager6/dc/ACLView.js
+++ b/www/manager6/dc/ACLView.js
@@ -1,7 +1,9 @@
Ext.define('PVE.dc.ACLAdd', {
extend: 'PVE.window.Edit',
alias: ['widget.pveACLAdd'],
-
+ url: '/access/acl',
+ method: 'PUT',
+ isAdd: true,
initComponent : function() {
/*jslint confusion: true */
var me = this;
@@ -57,9 +59,6 @@ Ext.define('PVE.dc.ACLAdd', {
});
Ext.apply(me, {
- url: '/access/acl',
- method: 'PUT',
- isAdd: true,
items: [ ipanel ]
});
@@ -78,7 +77,7 @@ Ext.define('PVE.dc.ACLView', {
initComponent : function() {
var me = this;
- var store = new Ext.data.Store({
+ var store = Ext.create('Ext.data.Store',{
model: 'pve-acl',
proxy: {
type: 'pve',
@@ -91,7 +90,7 @@ Ext.define('PVE.dc.ACLView', {
});
if (me.path) {
- store.filters.add(new Ext.util.Filter({
+ store.addFilter(Ext.create('Ext.util.Filter',{
filterFn: function(item) {
if (item.data.path === me.path) {
return true;
@@ -188,7 +187,8 @@ Ext.define('PVE.dc.ACLView', {
tbar: [
{
text: gettext('Add'),
- menu: new Ext.menu.Menu({
+ menu: {
+ xtype: 'menu',
items: [
{
text: gettext('Group Permission'),
@@ -213,7 +213,7 @@ Ext.define('PVE.dc.ACLView', {
}
}
]
- })
+ },
},
remove_btn
],
@@ -241,4 +241,4 @@ Ext.define('PVE.dc.ACLView', {
]
});
-});
\ No newline at end of file
+});
--
2.1.4
More information about the pve-devel
mailing list