]> git.proxmox.com Git - proxmox-backup.git/blobdiff - www/ServerAdministration.js
tools/logrotate: fix compression logic
[proxmox-backup.git] / www / ServerAdministration.js
index 24c0acf29e743f87c25b1b6bf444c3cf345b9655..936d8a07843a47c75f3c07dd88bbdb92be040cdd 100644 (file)
@@ -1,4 +1,3 @@
-/*global Proxmox*/
 Ext.define('PBS.ServerAdministration', {
     extend: 'Ext.tab.Panel',
     alias: 'widget.pbsServerAdministration',
@@ -14,24 +13,25 @@ Ext.define('PBS.ServerAdministration', {
         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',
@@ -43,26 +43,25 @@ Ext.define('PBS.ServerAdministration', {
                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',
+       },
+    ],
 });