Skip to content

Commit

Permalink
bugfix from taiga meanjs#135. (driving since, profile tab)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryk0v committed Aug 11, 2015
1 parent 135c302 commit 3b14e34
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
var userPromise = userService.getUserData();
if(userPromise.then){
userPromise.then(function (data) {
console.log('--==--==--=-=-= PROFILE DATA ---=-=-=-=-=-=-=', data);
vm.profileData = data;
})
}
Expand All @@ -41,31 +42,23 @@
reviewService
.getUserReviews()
.then(function (response) {
console.log('Reviews List', response);
vm.reviews = response.data;
})
};
vm.getExperience = function () {
experienceService
.getUserExperience()
.then(function (response) {
console.log('Experience List', response);
vm.experience = response.data;
})
};
vm.postReview = function (id, review) {
reviewService
.postReviewForProfile(id, review)
.then(function (response) {
console.log('posted response', response);
})
};
vm.postExperience = function (experience) {
experienceService
.postUserExperience(experience)
.then(function (response) {
console.log('posted experience', response);
})
};

//var sampleReview = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ <h1 class="title" ng-bind="vm.profileData.displayName">Profile</h1>
<span class="item-note">{{vm.profileData.company || vm.profileData.props.company}}</span>
</div>
<div class="item">
YEARS WORKED
<span class="item-note">{{vm.profileData.props.started}}</span>
DRIVING SINCE
<span class="item-note">{{vm.profileData.props.started | date : 'MMMM yyyy'}}</span>
</div>
<div class="item" ng-if="vm.profileData.props.freight">
<span class="ico ico-freight"></span>
Expand Down
13 changes: 12 additions & 1 deletion mobile/www/modules/signup/controllers/engagement.controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b14e34

Please sign in to comment.