mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-13 00:42:52 +00:00
64 lines
1.1 KiB
JavaScript
64 lines
1.1 KiB
JavaScript
Ext.define('PVE.node.Config', {
|
|
extend: 'PVE.panel.Config',
|
|
alias: 'widget.PVE.node.Config',
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
var nodename = me.pveSelNode.data.node;
|
|
if (!nodename) {
|
|
throw "no node name specified";
|
|
}
|
|
|
|
Ext.apply(me, {
|
|
title: "Node '" + nodename + "'",
|
|
hstateid: 'nodetab',
|
|
items: [
|
|
{
|
|
title: 'Summary',
|
|
itemId: 'summary',
|
|
xtype: 'pveNodeSummary'
|
|
},
|
|
{
|
|
title: 'Services',
|
|
itemId: 'services',
|
|
xtype: 'pveNodeServiceView'
|
|
},
|
|
{
|
|
title: 'Network',
|
|
itemId: 'network',
|
|
xtype: 'pveNodeNetworkView'
|
|
},
|
|
{
|
|
title: 'DNS',
|
|
itemId: 'dns',
|
|
xtype: 'pveNodeDNSView'
|
|
},
|
|
{
|
|
title: 'Time',
|
|
itemId: 'time',
|
|
xtype: 'pveNodeTimeView'
|
|
},
|
|
{
|
|
title: 'Syslog',
|
|
itemId: 'syslog',
|
|
xtype: 'pveLogView',
|
|
url: "/api2/json/nodes/" + nodename + "/syslog"
|
|
},
|
|
{
|
|
title: 'Task History',
|
|
itemId: 'tasks',
|
|
xtype: 'pveNodeTasks'
|
|
},
|
|
{
|
|
title: 'UBC',
|
|
itemId: 'ubc',
|
|
xtype: 'pveNodeBCFailCnt'
|
|
}
|
|
]
|
|
});
|
|
|
|
me.callParent();
|
|
}
|
|
});
|