From: michal.kovacik Date: Wed, 5 Oct 2016 07:37:15 +0000 (+0200) Subject: Yangman - hide show previous item icon if there are no data X-Git-Tag: release/carbon~16^2~2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=ac8445ac78f27476f2f603ec6e1b22375bc79a00;p=dlux.git Yangman - hide show previous item icon if there are no data -"show previous item" arrow icon remains displayed, also there are no form data Change-Id: I9a8807d287b51a44b312bc7050005b44671fed64 Signed-off-by: michal.kovacik --- diff --git a/modules/yangman-resources/src/main/resources/yangman/controllers/form/ym-list.controller.js b/modules/yangman-resources/src/main/resources/yangman/controllers/form/ym-list.controller.js index 0190a942..1dac57b0 100644 --- a/modules/yangman-resources/src/main/resources/yangman/controllers/form/ym-list.controller.js +++ b/modules/yangman-resources/src/main/resources/yangman/controllers/form/ym-list.controller.js @@ -57,6 +57,10 @@ define([], function () { yangList.addListElem(); } + + if (!$scope.node.listData.length) { + yangList.currentDisplayIndex = 1; + } } /**