Yangman - hide show previous item icon if there are no data 32/46532/3
authormichal.kovacik <mikovaci@cisco.com>
Wed, 5 Oct 2016 07:37:15 +0000 (09:37 +0200)
committerDaniel Malachovsky <dmalacho@cisco.com>
Mon, 7 Nov 2016 11:42:05 +0000 (12:42 +0100)
 -"show previous item" arrow icon remains displayed, also there are no
form data

Change-Id: I9a8807d287b51a44b312bc7050005b44671fed64
Signed-off-by: michal.kovacik <mikovaci@cisco.com>
modules/yangman-resources/src/main/resources/yangman/controllers/form/ym-list.controller.js

index 0190a94244bb50c39f36662c2f5b4514627addf1..1dac57b073072ee29121b60e4955af8855bda457 100644 (file)
@@ -57,6 +57,10 @@ define([], function () {
 
                 yangList.addListElem();
             }
+
+            if (!$scope.node.listData.length) {
+                yangList.currentDisplayIndex = 1;
+            }
         }
 
         /**