1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5707: Hide Virt Viewer file options from VM datatable (#1826)

This commit is contained in:
Frederick Borges 2022-03-03 18:18:11 +01:00 committed by GitHub
parent b2a2e53d2a
commit 471c627081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,22 +123,6 @@ define(function(require) {
return $("<div>").append(button.append(icon)).html();
}
function buttonWFile(id = "", data = {}) {
var icon = $("<i>", { class: "fas fa-external-link-square-alt" });
var button = $("<button>", {
title: "download virt-viewer file",
class: "w-file remote-vm",
"data-id": id,
"data-type": data.type,
"data-port": data.port,
"data-hostname":data.hostname
});
return $("<div>").append(button.append(icon)).html();
}
function dropdownRDP(id = "", ip = "", vm = {}) {
var icon = $("<i>", { class: "fab fa-windows" });
var dropdownButton = $("<button>", { title:"RDP menu", class: "remote-vm" });
@ -213,9 +197,6 @@ define(function(require) {
actions += buttonSpice(vm.ID);
}
var wFile = OpenNebulaVM.isWFileSupported(vm);
actions += wFile ? buttonWFile(vm.ID, wFile) : "";
var rdpIp = OpenNebulaVM.isConnectionSupported(vm, "rdp");
actions += rdpIp ? dropdownRDP(vm.ID, rdpIp, vm) : "";