mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-18 02:50:09 +03:00
M #~: Group remote buttons & highlight spice button (#4600)
This commit is contained in:
parent
62f7e96350
commit
2922d1f40a
@ -200,17 +200,18 @@ define(function(require) {
|
||||
layout: "vmsremote_buttons",
|
||||
custom_classes: "only-sunstone-info vnc-sunstone-info"
|
||||
},
|
||||
"VM.startspice" : {
|
||||
type: "action",
|
||||
text: Locale.tr("SPICE"),
|
||||
layout: "vmsremote_buttons",
|
||||
custom_classes: "only-sunstone-info spice-sunstone-info"
|
||||
},
|
||||
"VM.save_rdp" : {
|
||||
type: "action",
|
||||
text: Locale.tr("RDP"),
|
||||
layout: "vmsremote_buttons",
|
||||
custom_classes: "only-sunstone-info rdp-sunstone-info"
|
||||
},
|
||||
"VM.startspice" : {
|
||||
type: "action",
|
||||
text: '<i class="fas fa-desktop"/> ' + Locale.tr("SPICE"),
|
||||
custom_classes: "only-sunstone-info spice-sunstone-info"
|
||||
},
|
||||
"VM.save_as_template" : {
|
||||
type: "action",
|
||||
text: '<i class="fas fa-save"/>',
|
||||
|
@ -157,11 +157,13 @@ define(function(require) {
|
||||
}
|
||||
|
||||
var actions = "";
|
||||
// VNC icon
|
||||
// VNC/SPICE icon
|
||||
if (OpenNebulaVM.isVNCSupported(element)) {
|
||||
actions += '<button class="vnc" vm_id="' + element.ID + '"><i class="fas fa-desktop"></i></button>';
|
||||
actions += '<button class="vnc" vm_id="' + element.ID + '">\
|
||||
<i class="fas fa-desktop"></i></button>';
|
||||
} else if (OpenNebulaVM.isSPICESupported(element)) {
|
||||
actions += '<button class="spice" vm_id="' + element.ID + '"><i class="fas fa-desktop"></i></button>';
|
||||
actions += '<button class="spice" vm_id="' + element.ID + '">\
|
||||
<i class="fas fa-desktop" style="-webkit-text-stroke: 0.7px;"></i></button>';
|
||||
}
|
||||
|
||||
if(config &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user