1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #4474: Hide NUMA tab vcenter (#4709)

This commit is contained in:
Frederick Borges 2020-05-12 13:22:03 +02:00 committed by GitHub
parent 02d530d33f
commit e21e35c58a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -48,6 +48,7 @@ define(function(require) {
this.title = Locale.tr("Numa");
this.icon = "fa-microchip";
this.element = info[RESOURCE.toUpperCase()];
this.class = "not_vcenter";
return this;
};
@ -93,6 +94,16 @@ define(function(require) {
function _setup(context) {
var that = this;
console.log(that);
// Hide NUMA tab if hypervisor is vcenter
if( that.element &&
that.element.VM_MAD &&
that.element.VM_MAD == "vcenter"){
$("li.not_vcenter").addClass("hide");
}
if (
that &&
that.element &&
@ -271,4 +282,3 @@ define(function(require) {
}
}
})

View File

@ -196,7 +196,6 @@ define(function(require) {
context.on("change", "#CORES_PER_SOCKET", function(){
_calculateSockets(context);
});
// MB to GB
context.on("input", "div.memory_input input", function(){
$("div.memory_gb_input input", context).val(_m2g(this.value));