.cargo
debian
docs
etc
examples
src
tests
www
button
config
css
dashboard
data
form
images
window
Application.js
Dashboard.js
DataStoreContent.js
DataStorePanel.js
DataStorePrune.js
DataStoreStatistic.js
DirectoryList.js
LoginView.js
MainView.js
Makefile
NavigationTree.js
OnlineHelpInfo.js
ServerAdministration.js
ServerStatus.js
Subscription.js
SystemConfiguration.js
Utils.js
VersionInfo.js
ZFSList.js
index.hbs
zsh-completions
.gitignore
Cargo.toml
Makefile
README.rst
TODO.rst
defines.mk
rustfmt.toml
68 lines
1.4 KiB
JavaScript
68 lines
1.4 KiB
JavaScript
Ext.define('PBS.ServerAdministration', {
|
|
extend: 'Ext.tab.Panel',
|
|
alias: 'widget.pbsServerAdministration',
|
|
|
|
title: gettext('Server Administration'),
|
|
|
|
border: true,
|
|
defaults: { border: false },
|
|
|
|
controller: {
|
|
xclass: 'Ext.app.ViewController',
|
|
|
|
init: function(view) {
|
|
var upgradeBtn = view.lookupReference('upgradeBtn');
|
|
upgradeBtn.setDisabled(!(Proxmox.UserName && Proxmox.UserName === 'root@pam'));
|
|
},
|
|
},
|
|
|
|
items: [
|
|
{
|
|
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',
|
|
},
|
|
{
|
|
xtype: 'proxmoxNodeAPT',
|
|
title: gettext('Updates'),
|
|
upgradeBtn: {
|
|
xtype: 'button',
|
|
reference: 'upgradeBtn',
|
|
disabled: true,
|
|
text: gettext('Upgrade'),
|
|
handler: function() {
|
|
Proxmox.Utils.openXtermJsViewer('upgrade', 0, 'localhost');
|
|
},
|
|
},
|
|
itemId: 'updates',
|
|
nodename: 'localhost',
|
|
},
|
|
{
|
|
xtype: 'proxmoxJournalView',
|
|
itemId: 'logs',
|
|
title: gettext('Syslog'),
|
|
url: "/api2/extjs/nodes/localhost/journal",
|
|
},
|
|
{
|
|
xtype: 'proxmoxNodeTasks',
|
|
itemId: 'tasks',
|
|
title: gettext('Tasks'),
|
|
height: 'auto',
|
|
nodename: 'localhost',
|
|
},
|
|
],
|
|
});
|
|
|
|
|