Commit 937ed31e authored by Rafael Monnerat's avatar Rafael Monnerat

Minor bugs found on post production post upgrade

See merge request nexedi/slapos.core!410
parents 60ec7cd8 cf326afc
Pipeline #23024 failed with stage
in 0 seconds
......@@ -11,12 +11,16 @@
})
.onStateChange(function () {
var gadget = this,
header_text = "By <strong>" + gadget.state.author +
"</strong> on " + gadget.state.modification_date + ":",
header_text_element = domsugar('p', [
'By ',
domsugar('strong', {text: gadget.state.author}),
' on ',
gadget.state.modification_date,
':']),
header = domsugar("div", {
class: "slapos-event-discussion-message-header"
}, [
domsugar('p', {html: header_text})
header_text_element
]);
if (gadget.state.content_type === 'text/html') {
return domsugar(gadget.element, {}, [
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1001.26171.19762.42854</string> </value>
<value> <string>1002.9606.37397.136</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1659986314.17</float>
<float>1660875500.26</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -123,8 +123,15 @@
]));
}
domsugar(gadget.element.querySelector("ul"),
return domsugar(gadget.element.querySelector("ul"),
[domsugar(null, element_list)]);
})
.push(function () {
return gadget.getDeclaredGadget('erp5_panel_shortcut');
})
.push(function (shortcut_gadget) {
// Ensure links are updated
return shortcut_gadget.render({update: 1});
});
}
// Check for Alerts to pop
......
......@@ -255,7 +255,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1001.36662.17855.30088</string> </value>
<value> <string>1002.19336.55332.19763</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -273,7 +273,7 @@
</tuple>
<state>
<tuple>
<float>1657677595.88</float>
<float>1660570147.61</float>
<string>UTC</string>
</tuple>
</state>
......
/*globals console, window, rJS, i18n, domsugar*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
/*globals console, window, rJS, i18n, domsugar */
/*jslint indent: 2, nomen: true, maxlen: 80 */
(function (window, rJS, domsugar) {
"use strict";
......@@ -230,9 +230,7 @@
right_class = status_class;
} else {
if (result && result.partition) {
right_class = getComputePartitionStatus(
{compute_partition_news: result.partition}
);
right_class = getComputePartitionStatus(result.partition);
}
}
} else if (result && result.portal_type &&
......
......@@ -292,7 +292,7 @@
</tuple>
<state>
<tuple>
<float>1658520198.62</float>
<float>1660581838.54</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -13,9 +13,9 @@ if context.getPortalType() == "Computer Network":
return base_url + "aggregate_reference:(%s)" % compute_node_reference
if context.getPortalType() == "Instance Tree":
for connection_parameter in context.InstanceTree_getConnectionParameterList():
for connection_parameter in context.InstanceTree_getConnectionParameterList(raw=True):
if connection_parameter['connection_key'] == "monitor-setup-url":
return context.REQUEST.RESPONSE.redirect(connection_parameter['connection_key'])
return connection_parameter['connection_value']
base_url = 'https://monitor.app.officejs.com/#/?page=ojsm_dispatch&query=portal_type:"Instance Tree" AND '
return base_url + "title:(%s)" % context.getTitle()
......
......@@ -21,7 +21,7 @@ for instance in instance_list:
compute_node_list.append(partition.getParentValue().getUid())
if compute_node_list is None:
if not compute_node_list:
return True
full_software_installation_list = [si for si in
......
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