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

M #~: Fix roles table in flow service (#4718)

This commit is contained in:
Sergio Betanzos 2020-05-13 15:57:40 +02:00 committed by GitHub
parent a0e19c3fee
commit 48c3ee1f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,11 +236,12 @@ define(function(require) {
if (that.cache && that.cache.data && Array.isArray(that.cache.data)) {
$.each(that.cache.data, function(_, data){
if (data.VM && data.VM.ID === id) {
if (that.element.TEMPLATE.BODY.ready_status_gate) {
(vm_info.VM.USER_TEMPLATE.READY == "YES")
? info.push('<span class="has-tip" title="'+Locale.tr("The VM is ready")+'"><i class="fas fa-check"/></span>')
: info.push('<span class="has-tip" title="'+Locale.tr("Waiting for the VM to be ready")+'"><i class="fas fa-clock-o"/></span>')
}
(that.element.TEMPLATE.BODY.ready_status_gate &&
vm_info.VM.USER_TEMPLATE &&
vm_info.VM.USER_TEMPLATE.READY &&
vm_info.VM.USER_TEMPLATE.READY == "YES")
? info.push('<span class="has-tip" title="'+Locale.tr("The VM is ready")+'"><i class="fas fa-check"/></span>')
: info.push('<span class="has-tip" title="'+Locale.tr("Waiting for the VM to be ready")+'"><i class="fas fa-clock-o"/></span>');
ips = OpenNebulaVM.ipsStr(data.VM);