mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
feat(sharing): More opt outs
Also fixes a bug where "Display Now" didn't work for pets with a space in their name.
This commit is contained in:
@@ -116,7 +116,7 @@ habitrpg.controller("InventoryCtrl",
|
||||
if (!$window.confirm(window.env.t('hatchAPot', {potion: potName, egg: eggName}))) return;
|
||||
user.ops.hatch({params:{egg:egg.key, hatchingPotion:potion.key}});
|
||||
if (!user.preferences.suppressModals.hatchPet) {
|
||||
$rootScope.hatchedPet = {egg: eggName, potion: potName, pet: 'Pet-' + egg.key + '-' + potion.key};
|
||||
$rootScope.hatchedPet = {egg: eggName, potion: potName, eggKey: egg.key, pet: 'Pet-' + egg.key + '-' + potion.key};
|
||||
$rootScope.openModal('hatchPet', {controller: 'InventoryCtrl', size: 'sm'});
|
||||
}
|
||||
$scope.selectedEgg = null;
|
||||
@@ -160,7 +160,7 @@ habitrpg.controller("InventoryCtrl",
|
||||
$scope.selectedFood = null;
|
||||
|
||||
_updateDropAnimalCount(user.items);
|
||||
if ($scope.mountCount > startingMounts) {
|
||||
if ($scope.mountCount > startingMounts && !user.preferences.suppressModals.raisePet) {
|
||||
$rootScope.raisedPet = {displayName: petDisplayName, spriteName: pet, egg: egg, potion: potion}
|
||||
$rootScope.openModal('raisePet', {controller:'InventoryCtrl',size:'sm'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user