]>
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 },
11 xclass
: 'Ext.app.ViewController',
13 init: function(view
) {
14 var upgradeBtn
= view
.lookupReference('upgradeBtn');
15 upgradeBtn
.setDisabled(!(Proxmox
.UserName
&& Proxmox
.UserName
=== 'root@pam'));
21 xtype
: 'pbsServerStatus',
23 iconCls
: 'fa fa-area-chart',
26 xtype
: 'proxmoxNodeServiceView',
27 title
: gettext('Services'),
29 iconCls
: 'fa fa-cogs',
30 restartCommand
: 'reload', // avoid disruptions
33 'proxmox-backup': true,
34 'proxmox-backup-proxy': true,
36 nodename
: 'localhost',
39 xtype
: 'proxmoxNodeAPT',
40 title
: gettext('Updates'),
41 iconCls
: 'fa fa-refresh',
44 reference
: 'upgradeBtn',
46 text
: gettext('Upgrade'),
48 Proxmox
.Utils
.openXtermJsViewer('upgrade', 0, 'localhost');
52 nodename
: 'localhost',
55 xtype
: 'proxmoxJournalView',
57 iconCls
: 'fa fa-list',
58 title
: gettext('Syslog'),
59 url
: "/api2/extjs/nodes/localhost/journal",
62 xtype
: 'pbsNodeTasks',
64 iconCls
: 'fa fa-list-alt',
65 title
: gettext('Tasks'),
67 nodename
: 'localhost',