1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

F #2755: Fix guacamole actions from datatable (#723)

This commit is contained in:
Sergio Betanzos 2021-01-28 19:54:53 +01:00 committed by GitHub
parent 8c9caee42f
commit 8c1e8d3688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ define(function(require) {
var data = $(this).data();
(data.hasOwnProperty("id"))
? Sunstone.runAction("VM.startguac_action", String(data.id), 'rdp')
? Sunstone.runAction("VM.startguac_action", String(data.id), { type: 'rdp' })
: Notifier.notifyError(Locale.tr("RDP - Invalid action"));
return false;
@ -228,7 +228,7 @@ define(function(require) {
var data = $(this).data();
(data.hasOwnProperty("id"))
? Sunstone.runAction("VM.startguac_action", String(data.id), 'ssh')
? Sunstone.runAction("VM.startguac_action", String(data.id), { type: 'ssh' })
: Notifier.notifyError(Locale.tr("SSH - Invalid action"));
return false;
@ -238,7 +238,7 @@ define(function(require) {
var data = $(this).data();
(data.hasOwnProperty("id"))
? Sunstone.runAction("VM.startguac_action", String(data.id), 'vnc')
? Sunstone.runAction("VMstartguac_action", String(data.id), { type: 'vnc' })
: Notifier.notifyError(Locale.tr("VNC - Invalid action"));
return false;
@ -271,7 +271,7 @@ define(function(require) {
var data = $(that).data();
(data.hasOwnProperty("id"))
? Sunstone.runAction("VM.startvmrc_action", String(data.id), 'vnc')
? Sunstone.runAction("VM.startvmrc_action", String(data.id), { type: 'vnc' })
: Notifier.notifyError(Locale.tr("VNC - Invalid action"));
}
@ -279,7 +279,7 @@ define(function(require) {
var data = $(that).data();
(data.hasOwnProperty("id"))
? Sunstone.runAction("VM.startguac_action", String(data.id), 'vnc')
? Sunstone.runAction("VM.startguac_action", String(data.id), { type: 'vnc' })
: Notifier.notifyError(Locale.tr("VNC - Invalid action"));
}