X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=sdnr%2Fwireless-transport%2Fcode-Carbon-SR1%2Fapps%2Fdlux%2Fdlux-web%2Fsrc%2Fcommon%2Fgeneral%2Fcommon.general.filters.js;fp=sdnr%2Fwireless-transport%2Fcode-Carbon-SR1%2Fapps%2Fdlux%2Fdlux-web%2Fsrc%2Fcommon%2Fgeneral%2Fcommon.general.filters.js;h=519525c7d28eff020e6e99ee677241cf4994115c;hb=27fb2d06608fbb070ae2c15a5580a4f5b2423d15;hp=0000000000000000000000000000000000000000;hpb=60315525ab5e7c12a9f47c409092e8dba6ad656d;p=ccsdk%2Fapps.git diff --git a/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js b/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js new file mode 100644 index 00000000..519525c7 --- /dev/null +++ b/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/general/common.general.filters.js @@ -0,0 +1,15 @@ +define(['common/general/common.general.module'], function(general) { + + // Filter to return only valid ports (like id != 0) + general.filter('noRootPorts', function () { + return function (input) { + if (!input) { + return; + } + return input.filter(function(port) { + return port.nodeconnector.id !== "0" ? port : null; + }); + }; + }); + +});