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', {
disabled: !(PVE.UserName && PVE.UserName === 'root@pam'),
handler: function() {
PVE.Utils.checked_command(function() {
var url = Ext.urlEncode({
console: 'upgrade',
node: nodename
});
var nw = window.open("?" + url, '_blank',
"innerWidth=745,innerheight=427");
nw.focus();
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',
node: nodename
});
var nw = window.open("?" + url, '_blank',
"innerWidth=745,innerheight=427");
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