GUI: always use noVNC instead of java applet

This commit is contained in:
Dietmar Maurer 2015-06-19 09:08:08 +02:00
parent 31349069ed
commit f23c60e0a3
2 changed files with 3 additions and 5 deletions

View File

@ -233,11 +233,9 @@ Ext.define('PVE.Utils', { statics: {
render_console_viewer: function(value) {
if (!value) {
return PVE.Utils.defaultText + ' (HTML5)';
} else if (value === 'applet') {
return 'Java VNC Applet';
} else if (value === 'vv') {
return 'SPICE (remote-viewer)';
} else if (value === 'html5') {
} else if (value === 'applet' || value === 'html5') {
return 'HTML5 (noVNC)';
} else {
return value;
@ -946,7 +944,7 @@ Ext.define('PVE.Utils', { statics: {
}
if (viewer === 'applet' || viewer === 'html5') {
PVE.Utils.openVNCViewer(vmtype, vmid, nodename, vmname, viewer === 'html5');
PVE.Utils.openVNCViewer(vmtype, vmid, nodename, vmname, true);
} else if (viewer === 'vv') {
var url;
var params = { proxy: PVE.Utils.windowHostname() };

View File

@ -53,7 +53,7 @@ Ext.define('PVE.dc.ConsoleViewerEdit', {
var data = [];
Ext.Array.each(['', 'applet', 'vv', 'html5'], function(value) {
Ext.Array.each(['', 'vv', 'html5'], function(value) {
data.push([value, PVE.Utils.render_console_viewer(value)]);
});