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.
ngcp-csc/app/store/NavigationTree.js

78 lines
2.2 KiB

Ext.define('NgcpCsc.store.NavigationTree', {
extend: 'Ext.data.TreeStore',
storeId: 'NavigationTree',
fields: [{
name: 'text'
}],
root: {
expanded: true,
children: [{
text: 'Desktop',
iconCls: 'x-fa fa-desktop',
viewType: 'summary',
routeId: 'desktop',
acl: ['administrator', 'restricted', 'host'], //TODO define real roles, which should be delivered along with user info after successfull login
leaf: true
}, {
text: 'Calls',
iconCls: 'x-fa fa-phone',
viewType: 'calls',
routeId: 'callist',
acl: ['administrator', 'restricted'],
leaf: true
}, {
text: 'Voicemails',
iconCls: 'x-fa fa-envelope',
viewType: 'voicemails',
routeId: 'voicebox',
acl: ['administrator', 'restricted'],
leaf: true
}, {
text: 'Chat',
iconCls: 'x-fa fa-wechat',
viewType: 'chat',
routeId: 'chat',
acl: ['administrator', 'restricted'],
leaf: true
}, {
text: 'Address book',
iconCls: 'x-fa fa-book',
viewType: 'pageblank',
routeId: 'addressbook',
acl: ['administrator'],
leaf: true
}, {
text: 'Call forward',
iconCls: 'x-fa fa-mail-forward',
viewType: 'pageblank',
routeId: 'callforward',
acl: ['administrator'],
leaf: true
}, {
text: 'Call barring',
iconCls: 'x-fa fa-ban',
routeId: 'callblock',
viewType: 'callbarring',
acl: ['administrator'],
leaf: true
}, {
text: 'Reminder',
iconCls: 'x-fa fa-sticky-note',
viewType: 'pageblank',
routeId: 'reminder',
acl: ['administrator'],
leaf: true
}, {
text: 'Account',
iconCls: 'x-fa fa-user',
viewType: 'account',
routeId: 'account',
acl: ['administrator', 'restricted', 'host'],
leaf: true
}]
}
});