Skip to content

Commit

Permalink
Show basic message acknowledging friendship request
Browse files Browse the repository at this point in the history
  • Loading branch information
mtc2013 committed Jul 23, 2016
1 parent ad05d11 commit 64f678d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ angular.module('project_unify.controllers', [])
$scope.sendFriendshipRequest = function (user) {
friendshipService.get({friend_id: user.id}, function (data) {
console.log(data);
$rootScope.friendship_request_message = data.message;
});
}
})
Expand Down
1 change: 1 addition & 0 deletions www/templates/me/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<ion-content class="stable-bg has-bg" ng-style="{'background-image': 'url(\'' + 'img/bg.png' + '\')'}">
<div class="list card profile-top text-center">
<div class="item item-text-wrap">
<span>{{friendship_request_message}}</span>
<button ng-if="user == currentUser" class="button button-icon ion-edit calm" ng-click="openSkills()" ng-style="{'font-size': '12px'}"> Edit
profile
</button>
Expand Down

0 comments on commit 64f678d

Please sign in to comment.