diff options
author | chenjiankun <chenjiankun1@huawei.com> | 2018-03-16 02:44:42 +0000 |
---|---|---|
committer | chenjiankun <chenjiankun1@huawei.com> | 2018-03-16 02:44:42 +0000 |
commit | 4b8f53542a6871c863fbaba16dd5e0e35cf05ce5 (patch) | |
tree | ed9175591b81fe3ce566bfaf8599d59d722c2bd2 /gui/app/scripts/controllers/content.controller.js | |
parent | c3f91fac56cd938c408c62ff44f5ff039b1fd8e6 (diff) |
Add SUT page in GUI
JIRA: YARDSTICK-1076
We need to show SUT information in GUI.
Change-Id: I885773894fc9f6aa5975b39383af1fdf1b88b8bb
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'gui/app/scripts/controllers/content.controller.js')
-rw-r--r-- | gui/app/scripts/controllers/content.controller.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/app/scripts/controllers/content.controller.js b/gui/app/scripts/controllers/content.controller.js index 0288fa540..90a3f1433 100644 --- a/gui/app/scripts/controllers/content.controller.js +++ b/gui/app/scripts/controllers/content.controller.js @@ -49,6 +49,7 @@ angular.module('yardStickGui2App') $scope.gotoOpenrcPage = gotoOpenrcPage; $scope.gotoPodPage = gotoPodPage; $scope.gotoContainerPage = gotoContainerPage; + $scope.gotoSUTPage = gotoSUTPage; $scope.gotoTestcase = gotoTestcase; $scope.gotoEnviron = gotoEnviron; $scope.gotoSuite = gotoSuite; @@ -95,6 +96,12 @@ angular.module('yardStickGui2App') $state.go('app.container', { uuid: $scope.uuid }); } + function gotoSUTPage() { + $scope.path = $location.path(); + $scope.uuid = $scope.path.split('/').pop(); + $state.go('app.sut', { uuid: $scope.uuid }); + } + function gotoTestcase() { $state.go('app.testcase'); } |