Reviewed-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
On 05/07/2014 11:45 AM, Daniel Barboza wrote:
From: Daniel Henrique Barboza <danielhb(a)linux.vnet.ibm.com>
As described in #368, the Hosts tab wasn't appearing after
relogging (due to restarting kimchid or even when the session
expires). The issue was in the getHostStats JSON, which was
marked with the 'resend' flag, preventing the Host tab from
reloading.
This behavior is set in the kimchi.login_window.js. This flag
isn't used for any other purpose, thus its removal does not
break the refresh of the System Statistics frame in the Hosts
tab. A description of the right usage of the 'resend' tag can
be found in the header of kimchi.api.js.
Signed-off-by: Daniel Henrique Barboza <danielhb(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.api.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index fe56eaf..7d85fdf 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -84,7 +84,6 @@ var kimchi = {
kimchi.requestJSON({
url : kimchi.url + 'host/stats',
type : 'GET',
- resend: true,
contentType : 'application/json',
headers: {'Kimchi-Robot': 'kimchi-robot'},
dataType : 'json',