diff options
Diffstat (limited to 'testapi/opnfv_testapi/ui/components/results/resultsController.js')
-rw-r--r-- | testapi/opnfv_testapi/ui/components/results/resultsController.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/ui/components/results/resultsController.js b/testapi/opnfv_testapi/ui/components/results/resultsController.js index e9b4443..55bf0ba 100644 --- a/testapi/opnfv_testapi/ui/components/results/resultsController.js +++ b/testapi/opnfv_testapi/ui/components/results/resultsController.js @@ -62,6 +62,7 @@ ctrl.deleteTag = deleteTag; ctrl.filterList= filterList; ctrl.testFilter = testFilter + ctrl.viewResult = viewResult; ctrl.tagArray = {} @@ -127,6 +128,10 @@ ctrl.filterList(); } + function viewResult(_id){ + $state.go('result', {'_id':_id}, {reload: true}); + } + function deleteTag(index){ delete ctrl.tagArray[index]; ctrl.filterList(); |