From 41ff15069d96ea1040cb457b39f909967dabb8bc Mon Sep 17 00:00:00 2001 From: thuva4 Date: Tue, 5 Dec 2017 05:13:32 +0530 Subject: Add view option in pods page Created the view function for the pods page. It will redirect to pods/:name page where user can see the more details about the pod. Change-Id: I0d6c06098fd78ecca523a49e2bb532001adaeaa8 Signed-off-by: thuva4 --- testapi/opnfv_testapi/ui/components/pods/podsController.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testapi/opnfv_testapi/ui/components/pods/podsController.js') diff --git a/testapi/opnfv_testapi/ui/components/pods/podsController.js b/testapi/opnfv_testapi/ui/components/pods/podsController.js index fa60143..c66873a 100644 --- a/testapi/opnfv_testapi/ui/components/pods/podsController.js +++ b/testapi/opnfv_testapi/ui/components/pods/podsController.js @@ -46,6 +46,7 @@ ctrl.openCreateModal = openCreateModal ctrl.podDelete = podDelete ctrl.batchDelete = batchDelete; + ctrl.viewPod = viewPod /** * This is called when the date filter calendar is opened. It @@ -117,6 +118,10 @@ }); } + function viewPod(name){ + console.log('hello'); + $state.go('pod', {'name':name}, {reload: true}); + } /** * This will contact the TestAPI to delete a pod for given * name. -- cgit 1.2.3-korg