Oh okay sorry, ich hoffe jetzt ist das der richtige hier
Ext.define('Shopware.apps.SwagImportExport', {
extend: 'Enlight.app.SubApplication',
name: 'Shopware.apps.SwagImportExport',
loadPath: '/backend/SwagImportExport/load',
bulkLoad: true,
controllers: ['Main', 'Export', 'Import', 'Session', 'Profile'],
views: [
'Window',
'profile.window.Mappings',
'profile.window.Iterator',
'profile.window.Column',
'profile.Profile',
'profile.Grid',
'profile.Window',
'profile.tree.DragAndDrop',
'manager.Manager',
'manager.Export',
'manager.Import',
'manager.Session',
'manager.window.Export',
'manager.window.Import',
'manager.window.Log',
'log.Log'
],
models: ['Profile', 'ProfileList', 'SessionList', 'Log', 'Conversion'],
stores: ['Profile', 'ProfileList', 'SessionList', 'Log', 'Conversion'],
launch: function () {
return this.getController('Main').mainWindow;
}
});
Ext.define('Shopware.apps.Category.model.Tree', {
extend:'Shopware.model.Category',
fields:[
{ name : 'id', type: 'integer', useNull:true },
{ name : 'parentId', type: 'integer' },
{ name : 'name', type: 'string' },
{ name : 'position', type: 'integer', useNull:true, defaultValue: null},
{ name : 'previousId', type: 'integer', useNull:true, defaultValue: null}
],
proxy : {
type : 'ajax',
api : {
read : '/backend/category/getList',
create : '/backend/category/createDetail',
update : '/backend/category/moveTreeItem',
destroy : '/backend/category/delete'
},
reader : {
type : 'json',
root: 'data'
}
}
});
Ext.define('Shopware.apps.Category.store.Tree', {
extend : 'Ext.data.TreeStore',
model : 'Shopware.apps.Category.model.Tree'
});