mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
mounts: show when selectedFood by green-circle highlighting pets
This commit is contained in:
@@ -47,6 +47,7 @@ habitrpg.controller("InventoryCtrl", ['$rootScope', '$scope', 'User', 'API_URL',
|
||||
}
|
||||
|
||||
$scope.chooseFood = function(food){
|
||||
if ($scope.selectedFood && $scope.selectedFood.name == food) return $scope.selectedFood = null;
|
||||
$scope.selectedFood = $scope.Items.food[food];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user