Commit 71182a2a authored by Alain Takoudjou's avatar Alain Takoudjou

monitoring: fix hosting subscription list when monitor instance data are not synchronized

parent 16ecf71d
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
CACHE MANIFEST\n CACHE MANIFEST\n
# generated on Fri, 25 Mai 2016 15:47:33 +0000\n # generated on Fri, 23 June 2016 15:47:33 +0000\n
# XXX + fonts\n # XXX + fonts\n
# images/ajax-loader.gif\n # images/ajax-loader.gif\n
CACHE:\n CACHE:\n
...@@ -122,11 +122,14 @@ Chart.min.js\n ...@@ -122,11 +122,14 @@ Chart.min.js\n
dygraph.js\n dygraph.js\n
gadget_erp5.css\n gadget_erp5.css\n
gadget_global.js\n gadget_global.js\n
gadget_erp5_graph.html\n
gadget_erp5_graph.js\n
gadget_jio.html\n gadget_jio.html\n
gadget_jio.js\n gadget_jio.js\n
gadget_translate.html\n gadget_translate.html\n
gadget_translate.js\n gadget_translate.js\n
gadget_translation.html\n gadget_translation.html\n
dygraph.js\n
handlebars.js\n handlebars.js\n
i18next.js\n i18next.js\n
jiodev.js\n jiodev.js\n
...@@ -334,7 +337,7 @@ NETWORK:\n ...@@ -334,7 +337,7 @@ NETWORK:\n
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>951.30729.47924.44561</string> </value> <value> <string>952.4357.25082.29508</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -352,7 +355,7 @@ NETWORK:\n ...@@ -352,7 +355,7 @@ NETWORK:\n
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1464342540.22</float> <float>1466692187.09</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -168,11 +168,21 @@ ...@@ -168,11 +168,21 @@
hosting_title = document_list[i][j]['hosting-title'] || ''; hosting_title = document_list[i][j]['hosting-title'] || '';
} }
} }
if (hosting_dict.instance_list.length === 0) {
// No instance data was found!
hosting_dict.status = 'ERROR';
hosting_dict.title = gadget.props.opml_dict[
gadget.props.opml_key_list[i]].title;
hosting_dict.date = 'Not available';
// Redirect to configurator to sync data
hosting_dict.href = '#page=settings_configurator&tab=manage';
} else {
hosting_dict.status = status; hosting_dict.status = status;
hosting_dict.title = hosting_title; hosting_dict.title = hosting_title;
hosting_dict.date = date; hosting_dict.date = date;
hosting_dict.href = "#page=hosting_subscription_view&key=" + hosting_dict.href = "#page=hosting_subscription_view&key=" +
gadget.props.opml_key_list[i]; gadget.props.opml_key_list[i];
}
gadget.props.hosting_list.push(hosting_dict); gadget.props.hosting_list.push(hosting_dict);
} }
content = hosting_widget_template({ content = hosting_widget_template({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment