remove Updates and Repositories from Server Administration

This commit is contained in:
Andrew A. Vasilyev 2023-04-04 17:00:07 +03:00
parent 897832f835
commit 193aaacd19

View File

@ -13,8 +13,8 @@ Ext.define('PBS.ServerAdministration', {
xclass: 'Ext.app.ViewController',
init: function(view) {
var upgradeBtn = view.lookupReference('upgradeBtn');
upgradeBtn.setDisabled(!(Proxmox.UserName && Proxmox.UserName === 'root@pam'));
// var upgradeBtn = view.lookupReference('upgradeBtn');
// upgradeBtn.setDisabled(!(Proxmox.UserName && Proxmox.UserName === 'root@pam'));
},
},
@ -37,31 +37,6 @@ Ext.define('PBS.ServerAdministration', {
},
nodename: 'localhost',
},
{
xtype: 'proxmoxNodeAPT',
title: gettext('Updates'),
iconCls: 'fa fa-refresh',
upgradeBtn: {
xtype: 'button',
reference: 'upgradeBtn',
disabled: true,
text: gettext('Upgrade'),
handler: function() {
Proxmox.Utils.openXtermJsViewer('upgrade', 0, 'localhost');
},
},
itemId: 'updates',
nodename: 'localhost',
},
{
xtype: 'proxmoxNodeAPTRepositories',
title: gettext('Repositories'),
iconCls: 'fa fa-files-o',
itemId: 'aptrepositories',
nodename: 'localhost',
product: 'Proxmox Backup Server',
onlineHelp: 'sysadmin_package_repositories',
},
{
xtype: 'proxmoxJournalView',
itemId: 'logs',