-/*global Proxmox*/
Ext.define('PBS.ServerAdministration', {
extend: 'Ext.tab.Panel',
alias: 'widget.pbsServerAdministration',
init: function(view) {
var upgradeBtn = view.lookupReference('upgradeBtn');
upgradeBtn.setDisabled(!(Proxmox.UserName && Proxmox.UserName === 'root@pam'));
- }
+ },
},
items: [
-// {
-// xtype: 'pbsServerStatus',
-// itemId: 'status'
-// },
+ {
+ xtype: 'pbsServerStatus',
+ itemId: 'status',
+ },
{
xtype: 'proxmoxNodeServiceView',
title: gettext('Services'),
itemId: 'services',
+ restartCommand: 'reload', // avoid disruptions
startOnlyServices: {
syslog: true,
'proxmox-backup': true,
'proxmox-backup-proxy': true,
},
- nodename: 'localhost'
+ nodename: 'localhost',
},
{
xtype: 'proxmoxNodeAPT',
text: gettext('Upgrade'),
handler: function() {
Proxmox.Utils.openXtermJsViewer('upgrade', 0, 'localhost');
- }
+ },
},
itemId: 'updates',
- nodename: 'localhost'
+ nodename: 'localhost',
},
{
- xtype: 'proxmoxLogView',
+ xtype: 'proxmoxJournalView',
itemId: 'logs',
title: gettext('Syslog'),
- url: "/api2/extjs/nodes/localhost/syslog",
- log_select_timespan: 1
+ url: "/api2/extjs/nodes/localhost/journal",
},
{
xtype: 'proxmoxNodeTasks',
itemId: 'tasks',
title: gettext('Tasks'),
height: 'auto',
- nodename: 'localhost'
- }
- ]
+ nodename: 'localhost',
+ },
+ ],
});