fix(sharing): Add social service to Inventory

Also fixes accidental 'only' in tests.
This commit is contained in:
Sabe Jones
2015-10-28 16:52:07 -04:00
parent f4ea6c1d5d
commit aad3e5ade6
3 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
habitrpg.controller("InventoryCtrl",
['$rootScope', '$scope', 'Shared', '$window', 'User', 'Content', 'Analytics', 'Quests', 'Stats',
function($rootScope, $scope, Shared, $window, User, Content, Analytics, Quests, Stats) {
['$rootScope', '$scope', 'Shared', '$window', 'User', 'Content', 'Analytics', 'Quests', 'Stats', 'Social',
function($rootScope, $scope, Shared, $window, User, Content, Analytics, Quests, Stats, Social) {
var user = User.user;
@@ -11,6 +11,9 @@ habitrpg.controller("InventoryCtrl",
_updateDropAnimalCount(user.items);
// Social sharing buttons
$scope.loadWidgets = Social.loadWidgets;
// Functions from Quests service
$scope.lockQuest = Quests.lockQuest;