]> git.proxmox.com Git - proxmox-backup.git/blame - www/ServerAdministration.js
tools/logrotate: fix compression logic
[proxmox-backup.git] / www / ServerAdministration.js
CommitLineData
d1a35593
DM
1Ext.define('PBS.ServerAdministration', {
2 extend: 'Ext.tab.Panel',
3 alias: 'widget.pbsServerAdministration',
4
5 title: gettext('Server Administration'),
6
63bd6a9f 7 border: true,
d1a35593
DM
8 defaults: { border: false },
9
10 controller: {
11 xclass: 'Ext.app.ViewController',
12
13 init: function(view) {
14 var upgradeBtn = view.lookupReference('upgradeBtn');
15 upgradeBtn.setDisabled(!(Proxmox.UserName && Proxmox.UserName === 'root@pam'));
6ab77df3 16 },
d1a35593
DM
17 },
18
19 items: [
ecb53af6
DM
20 {
21 xtype: 'pbsServerStatus',
6ab77df3 22 itemId: 'status',
ecb53af6 23 },
d1a35593
DM
24 {
25 xtype: 'proxmoxNodeServiceView',
26 title: gettext('Services'),
27 itemId: 'services',
e6b599aa 28 restartCommand: 'reload', // avoid disruptions
d1a35593
DM
29 startOnlyServices: {
30 syslog: true,
b5907d8a
TL
31 'proxmox-backup': true,
32 'proxmox-backup-proxy': true,
d1a35593 33 },
6ab77df3 34 nodename: 'localhost',
d1a35593
DM
35 },
36 {
37 xtype: 'proxmoxNodeAPT',
38 title: gettext('Updates'),
39 upgradeBtn: {
40 xtype: 'button',
41 reference: 'upgradeBtn',
42 disabled: true,
43 text: gettext('Upgrade'),
44 handler: function() {
68cacc00 45 Proxmox.Utils.openXtermJsViewer('upgrade', 0, 'localhost');
6ab77df3 46 },
d1a35593
DM
47 },
48 itemId: 'updates',
6ab77df3 49 nodename: 'localhost',
d1a35593
DM
50 },
51 {
81cc71c0 52 xtype: 'proxmoxJournalView',
d1a35593
DM
53 itemId: 'logs',
54 title: gettext('Syslog'),
81cc71c0 55 url: "/api2/extjs/nodes/localhost/journal",
d1a35593
DM
56 },
57 {
58 xtype: 'proxmoxNodeTasks',
59 itemId: 'tasks',
60 title: gettext('Tasks'),
61 height: 'auto',
6ab77df3
TL
62 nodename: 'localhost',
63 },
64 ],
d1a35593
DM
65});
66
67