facebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-servicesmacoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskype
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
796 B
42 lines
796 B
Ext.define('Rambox.store.ServicesList', { |
|
extend: 'Ext.data.Store' |
|
,alias: 'store.serviceslist' |
|
|
|
,requires: [ |
|
'Ext.data.proxy.LocalStorage' |
|
] |
|
|
|
,model: 'Rambox.model.ServiceList' |
|
|
|
,proxy: { |
|
type: 'ajax', |
|
url: 'resources/services.json', |
|
reader: { |
|
type: 'json', |
|
rootProperty: 'responseText' |
|
} |
|
} |
|
,listeners: { |
|
load: function () { |
|
Ext.get('spinner') ? Ext.get('spinner').destroy() : null; |
|
Ext.get('background') ? Ext.get('background').destroy() : null; |
|
this.add({ |
|
id: 'custom' |
|
,logo: 'custom.png' |
|
,name: '_Custom Service' |
|
,description: locale['services[38]'] |
|
,url: '___' |
|
,type: 'custom' |
|
,allow_popups: true |
|
}) |
|
} |
|
} |
|
,sorters: [{ |
|
property: 'name' |
|
,direction: 'ASC' |
|
}] |
|
|
|
,autoLoad: true |
|
,autoSync: true |
|
,pageSize: 100000 |
|
});
|
|
|