Commit dec02612 authored by Dietmar Maurer's avatar Dietmar Maurer

allow to run upgrades with spiceterm

parent 2018e442
...@@ -83,13 +83,21 @@ Ext.define('PVE.node.APT', { ...@@ -83,13 +83,21 @@ Ext.define('PVE.node.APT', {
disabled: !(PVE.UserName && PVE.UserName === 'root@pam'), disabled: !(PVE.UserName && PVE.UserName === 'root@pam'),
handler: function() { handler: function() {
PVE.Utils.checked_command(function() { PVE.Utils.checked_command(function() {
var url = Ext.urlEncode({ var url;
var params;
if (PVE.Utils.defaultViewer() === 'vv') {
url = '/nodes/' + nodename + '/spiceshell';
params = { upgrade: 1, proxy: window.location.hostname };
PVE.Utils.openSpiceViewer(url, params);
} else {
url = Ext.urlEncode({
console: 'upgrade', console: 'upgrade',
node: nodename node: nodename
}); });
var nw = window.open("?" + url, '_blank', var nw = window.open("?" + url, '_blank',
"innerWidth=745,innerheight=427"); "innerWidth=745,innerheight=427");
nw.focus(); nw.focus();
}
}); });
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment