diff options
author | thuva4 <tharma.thuva@gmail.com> | 2017-12-07 09:47:08 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2017-12-15 18:23:34 +0530 |
commit | 4e98903ccae3363090de8fefb463b64a943b8f9f (patch) | |
tree | 202e1bbcf59fb13d57f6ef390644188fdfc23a2e /testapi/opnfv_testapi/ui/app.js | |
parent | 41ff15069d96ea1040cb457b39f909967dabb8bc (diff) |
Redesign the projects page & project page
redesign the projects page like pods page
included the delete, filter, create, edit,
batch delete in the projects page.
Unify the update modal for projects page and
project page.
Fix authenticate - fault opertaions
Change-Id: If4ea50ada11941c5d9199d898476837020c02241
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/app.js')
-rw-r--r-- | testapi/opnfv_testapi/ui/app.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/testapi/opnfv_testapi/ui/app.js b/testapi/opnfv_testapi/ui/app.js index 28e5810..8c85686 100644 --- a/testapi/opnfv_testapi/ui/app.js +++ b/testapi/opnfv_testapi/ui/app.js @@ -124,14 +124,14 @@ .run(setup); setup.$inject = [ - '$http', '$rootScope', '$window', '$state', 'testapiApiUrl' + '$http', '$rootScope', '$window', '$state', 'testapiApiUrl', "authenticate" ]; /** * Set up the app with injections into $rootscope. This is mainly for auth * functions. */ - function setup($http, $rootScope, $window, $state, testapiApiUrl) { + function setup($http, $rootScope, $window, $state, testapiApiUrl, authenticate) { $rootScope.auth = {}; $rootScope.auth.doSignIn = doSignIn; @@ -165,7 +165,11 @@ success(function (data) { $rootScope.auth.currentUser = data; $rootScope.auth.isAuthenticated = true; - $rootScope.auth.projectNames = $rootScope.auth.doSubmitterCheck(data.groups); + if(authenticate){ + $rootScope.auth.projectNames = $rootScope.auth.doSubmitterCheck(data.groups); + }else{ + $rootScope.auth.projectNames = ["anonymous"] + } }). error(function () { $rootScope.auth.currentUser = null; |