mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-17 07:43:22 +00:00
GUI: always use noVNC instead of java applet
This commit is contained in:
parent
31349069ed
commit
f23c60e0a3
@ -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() };
|
||||
|
@ -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)]);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user