remove Updates and Repositories from Server Administration
This commit is contained in:
parent
897832f835
commit
193aaacd19
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user