mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(sharing): Add social service to Inventory
Also fixes accidental 'only' in tests.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user