X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Fmonitoring_params%2FmonitoringParamComponents.js;h=ab12fcde621ca99ac5e503c2216d82c58eb778cd;hb=ab68734c52fb6d413e8241466c4517bd7af2477f;hp=9d52bb82111bad0d4d60e39aa2b1fc0926342d4e;hpb=e29efc315df33d546237e270470916e26df391d6;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js b/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js index 9d52bb821..ab12fcde6 100644 --- a/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js +++ b/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js @@ -1,6 +1,6 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -49,15 +49,16 @@ function Component(node, prop, count, length) { //' + String((100/length) - 5) + '%' switch(node["widget-type"]) { case 'GAUGE': - return ( -
-
{node.name}
- -
); - break; + // Disabled for OSM + // return ( + //
+ //
{node.name}
+ // + //
); + // break; case 'TEXTBOX': case 'COUNTER': var displayValue = 0; @@ -116,7 +117,9 @@ export default function parseCardObj(obj_list, type) { } ret.push(html) } - return ret.sort(function(a, b){ - return (a.title > b.title) ? -1 : 1; - }); + return ret.sort(function(a,b) { + var titleA = a.title && a.title.toUpperCase(); + var titleB = b.title && b.title.toUpperCase(); + return (titleA < titleB) ? -1 : (titleA > titleB) ? 1 : 0; + }); }