mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix(sharing): Add social service to Inventory
Also fixes accidental 'only' in tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
describe.only('Inventory Controller', function() {
|
describe('Inventory Controller', function() {
|
||||||
var scope, ctrl, user, rootScope;
|
var scope, ctrl, user, rootScope;
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
habitrpg.controller("InventoryCtrl",
|
habitrpg.controller("InventoryCtrl",
|
||||||
['$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) {
|
function($rootScope, $scope, Shared, $window, User, Content, Analytics, Quests, Stats, Social) {
|
||||||
|
|
||||||
var user = User.user;
|
var user = User.user;
|
||||||
|
|
||||||
@@ -11,6 +11,9 @@ habitrpg.controller("InventoryCtrl",
|
|||||||
|
|
||||||
_updateDropAnimalCount(user.items);
|
_updateDropAnimalCount(user.items);
|
||||||
|
|
||||||
|
// Social sharing buttons
|
||||||
|
$scope.loadWidgets = Social.loadWidgets;
|
||||||
|
|
||||||
// Functions from Quests service
|
// Functions from Quests service
|
||||||
$scope.lockQuest = Quests.lockQuest;
|
$scope.lockQuest = Quests.lockQuest;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ include ../avatar/generated_avatar
|
|||||||
script(type='text/ng-template', id='modals/levelUp.html')
|
script(type='text/ng-template', id='modals/levelUp.html')
|
||||||
div(id='fb-root')
|
div(id='fb-root')
|
||||||
.modal-content(style='min-width:28em')
|
.modal-content(style='min-width:28em')
|
||||||
.modal-body.text-center
|
.modal-body.text-center(style='padding-bottom:0')
|
||||||
h3(style='margin-bottom: 0')=env.t('gainedLevel')
|
h3(style='margin-bottom: 0')=env.t('gainedLevel')
|
||||||
.container-fluid
|
.container-fluid
|
||||||
.row
|
.row
|
||||||
|
|||||||
Reference in New Issue
Block a user