diff options
author | thuva4 <tharma.thuva@gmail.com> | 2017-12-05 05:13:32 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2017-12-05 05:47:00 +0530 |
commit | 41ff15069d96ea1040cb457b39f909967dabb8bc (patch) | |
tree | cc60bf106552ccb7223434cb387fdb0df258ae78 /testapi/opnfv_testapi/ui/components/pods/podsController.js | |
parent | ae88dfd997ae0516ec097033c378740ea8580483 (diff) |
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 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/components/pods/podsController.js')
-rw-r--r-- | testapi/opnfv_testapi/ui/components/pods/podsController.js | 5 |
1 files changed, 5 insertions, 0 deletions
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. |