From 322f75f84a8cc110ef0ada420e9e25a11045c2df Mon Sep 17 00:00:00 2001 From: GowthamShanmugasundaram Date: Tue, 21 May 2019 11:53:49 +0000 Subject: [PATCH] Cluster list page doesn't show Ready to Import cluster status bugzilla: 1663287 tendrl-bug-id: Tendrl/ui#1095 Signed-off-by: GowthamShanmugasundaram --- src/commons/stores/cluster-store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commons/stores/cluster-store.js b/src/commons/stores/cluster-store.js index 199a6b66..88e4cc7a 100644 --- a/src/commons/stores/cluster-store.js +++ b/src/commons/stores/cluster-store.js @@ -262,7 +262,7 @@ if (temp.managed === "No") { if ((!temp.errors.length) && temp.currentStatus === "failed") { temp.message = "Cluster Misconfigured"; - } else if (temp.currentStatus === "finished" || temp.currentTask === {}) { + } else if (temp.currentStatus === "finished" || JSON.stringify(temp.currentTask) === "{}") { temp.message = "Ready to Import"; } } @@ -332,4 +332,4 @@ } } -})(); \ No newline at end of file +})();