baseUrl: undefined,
items: [
{
- xtype: 'pveTitleBar'
+ xtype: 'pveTitleBar',
},
{
xtype: 'list',
disableSelection: true,
listeners: {
itemsingletap: function(list, index, target, record) {
- PVE.Workspace.gotoPage('nodes/' + record.get('node') + '/tasks/' +
+ PVE.Workspace.gotoPage('nodes/' + record.get('node') + '/tasks/' +
record.get('upid'));
- }
+ },
},
itemTpl: [
'<div style="vertical-align: middle;">' +
},
status: function(values) {
return Ext.String.ellipsis(values.status, 160);
- }
- }
- ]
- }
- ]
+ },
+ },
+ ],
+ },
+ ],
},
reload: function() {
model: 'pve-tasks',
proxy: {
type: 'pve',
- url: '/api2/json' + me.getBaseUrl()
+ url: '/api2/json' + me.getBaseUrl(),
},
sorters: [
{
- property : 'starttime',
- direction: 'DESC'
- }
- ]
+ property: 'starttime',
+ direction: 'DESC',
+ },
+ ],
});
var list = me.down('list');
list.setStore(me.store);
me.reload();
-
+
this.callParent();
- }
+ },
});
Ext.define('PVE.ClusterTaskList', {
statics: {
pathMatch: function(loc) {
return loc.match(/^tasks$/);
- }
+ },
},
config: {
- baseUrl: '/cluster/tasks'
+ baseUrl: '/cluster/tasks',
},
initialize: function() {
}
this.callParent();
- }
+ },
});
Ext.define('PVE.NodeTaskList', {
statics: {
pathMatch: function(loc) {
- return loc.match(/^nodes\/([^\s\/]+)\/tasks$/);
- }
+ return loc.match(/^nodes\/([^\s/]+)\/tasks$/);
+ },
},
nodename: undefined,
me.down('titlebar').setTitle(gettext('Tasks') + ': ' + me.nodename);
this.callParent();
- }
+ },
});