]> git.proxmox.com Git - proxmox-backup.git/blob - www/ServerAdministration.js
client: raise HTTP_TIMEOUT to 120s
[proxmox-backup.git] / www / ServerAdministration.js
1 Ext.define('PBS.ServerAdministration', {
2 extend: 'Ext.tab.Panel',
3 alias: 'widget.pbsServerAdministration',
4
5 title: gettext('Server Administration'),
6
7 border: true,
8 defaults: { border: false },
9
10 tools: [PBS.Utils.get_help_tool("sysadmin-host-administration")],
11
12 controller: {
13 xclass: 'Ext.app.ViewController',
14
15 init: function(view) {
16 var upgradeBtn = view.lookupReference('upgradeBtn');
17 upgradeBtn.setDisabled(!(Proxmox.UserName && Proxmox.UserName === 'root@pam'));
18 },
19 },
20
21 items: [
22 {
23 xtype: 'pbsServerStatus',
24 itemId: 'status',
25 iconCls: 'fa fa-area-chart',
26 },
27 {
28 xtype: 'proxmoxNodeServiceView',
29 title: gettext('Services'),
30 itemId: 'services',
31 iconCls: 'fa fa-cogs',
32 restartCommand: 'reload', // avoid disruptions
33 startOnlyServices: {
34 syslog: true,
35 'proxmox-backup': true,
36 'proxmox-backup-proxy': true,
37 },
38 nodename: 'localhost',
39 },
40 {
41 xtype: 'proxmoxNodeAPT',
42 title: gettext('Updates'),
43 iconCls: 'fa fa-refresh',
44 upgradeBtn: {
45 xtype: 'button',
46 reference: 'upgradeBtn',
47 disabled: true,
48 text: gettext('Upgrade'),
49 handler: function() {
50 Proxmox.Utils.openXtermJsViewer('upgrade', 0, 'localhost');
51 },
52 },
53 itemId: 'updates',
54 nodename: 'localhost',
55 },
56 {
57 xtype: 'proxmoxJournalView',
58 itemId: 'logs',
59 iconCls: 'fa fa-list',
60 title: gettext('Syslog'),
61 url: "/api2/extjs/nodes/localhost/journal",
62 },
63 {
64 xtype: 'pbsNodeTasks',
65 itemId: 'tasks',
66 iconCls: 'fa fa-list-alt',
67 title: gettext('Tasks'),
68 height: 'auto',
69 nodename: 'localhost',
70 },
71 ],
72 });
73
74