Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Cl misc fixes 3 #1016

Merged
merged 4 commits into from
Feb 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions app/listings/listings.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@ import { loadUser } from '../services/userv3.service.js'
vm.myChallenges = []
loadUser().then(function(token) {
handle = UserService.getUserIdentity().handle
// mock current user have this challenges
vm.myChallenges.push({'id':30056409})
vm.myChallenges.push({'id':30056067})
vm.myChallenges.push({'id':16870})

// update auth flag
// update auth flag and get challenges
if(TcAuthService.isAuthenticated()) {
getChallenges(handle)
$scope.userProps = { isAuth: true, myChallenges: vm.myChallenges }
}
}, function(error) {
// do nothing, just show non logged in state of navigation bar
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"appirio-styles": "0.x.x",
"appirio-tech-ng-iso-constants": "^1.0.6",
"appirio-tech-ng-ui-components": "^2.1.2",
"appirio-tech-react-components": "appirio-tech/react-components.git#cl-misc-fixes-2",
"appirio-tech-react-components": "appirio-tech/react-components.git#cl-misc-fixes-3",
"auth0-angular": "^4.1.0",
"auth0-js": "^6.8.0",
"d3": "^3.5.14",
Expand Down