]>
git.proxmox.com Git - proxmox-backup.git/blob - www/ServerAdministration.js
1 Ext
.define('PBS.ServerAdministration', {
2 extend
: 'Ext.tab.Panel',
3 alias
: 'widget.pbsServerAdministration',
5 title
: gettext('Server Administration'),
8 defaults
: { border
: false },
10 tools
: [PBS
.Utils
.get_help_tool("sysadmin-host-administration")],
13 xclass
: 'Ext.app.ViewController',
15 init: function(view
) {
16 var upgradeBtn
= view
.lookupReference('upgradeBtn');
17 upgradeBtn
.setDisabled(!(Proxmox
.UserName
&& Proxmox
.UserName
=== 'root@pam'));
23 xtype
: 'pbsServerStatus',
25 iconCls
: 'fa fa-area-chart',
28 xtype
: 'proxmoxNodeServiceView',
29 title
: gettext('Services'),
31 iconCls
: 'fa fa-cogs',
32 restartCommand
: 'reload', // avoid disruptions
35 'proxmox-backup': true,
36 'proxmox-backup-proxy': true,
38 nodename
: 'localhost',
41 xtype
: 'proxmoxNodeAPT',
42 title
: gettext('Updates'),
43 iconCls
: 'fa fa-refresh',
46 reference
: 'upgradeBtn',
48 text
: gettext('Upgrade'),
50 Proxmox
.Utils
.openXtermJsViewer('upgrade', 0, 'localhost');
54 nodename
: 'localhost',
57 xtype
: 'proxmoxJournalView',
59 iconCls
: 'fa fa-list',
60 title
: gettext('Syslog'),
61 url
: "/api2/extjs/nodes/localhost/journal",
64 xtype
: 'pbsNodeTasks',
66 iconCls
: 'fa fa-list-alt',
67 title
: gettext('Tasks'),
69 nodename
: 'localhost',