1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-24 17:49:28 +03:00

M #4089: fix lost var (#4707)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo
2020-05-12 13:01:46 +02:00
committed by GitHub
parent 469e5f824c
commit ccd1b5c8eb

View File

@ -309,9 +309,9 @@ define(function(require) {
var anchorAttributes = {class: "detachnic", href: "VM.detachnic"};
var anchor = $("<a/>",anchorAttributes).append(icon); //"<a href=\"VM.detachnic\" class=\"detachnic\" ><i class=\"fas fa-times\"/></a>";
if (validateState(that,"VM.attachnic") && OpenNebulaVM.isNICAttachSupported(that.element)) {
html += isFirecracker(that) && anchor.get(0).outerHTML;
actions += isFirecracker(that) && anchor.get(0).outerHTML;
} else {
html += !isFirecracker(that) && anchor.get(0).outerHTML;
actions += !isFirecracker(that) && anchor.get(0).outerHTML;
}
}
}