B #5490: trim in USER_TEMPLATE/READY (#1403)

This commit is contained in:
Jorge Miguel Lobo Escalona authored and GitHub committed 2021-08-09 20:15:07 +02:00
1 parent 5370d945ae
commit a3cd18cf8e
1 file changed
+1 -1
@@ -227,7 +227,7 @@ define(function(require) {
var ready = "";
var check = "<span class=\"has-tip\" title=\""+Locale.tr("The VM is ready")+"\"><i class=\"fas fa-check\"/></span>";
if (ready_status_gate && data.VM.USER_TEMPLATE && data.VM.USER_TEMPLATE.READY){
ready = (data.VM.USER_TEMPLATE.READY === "YES")
ready = (data.VM.USER_TEMPLATE.READY.trim().toUpperCase() === "YES")
? check
: "<span class=\"has-tip\" title=\""+
Locale.tr("Waiting for the VM to be ready")+"\"><i class=\"fas fa-clock\"/></span>";