mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Transition Challenge -> Edit to the Singleton challenge view, to address issues associated with #4814
This commit is contained in:
@@ -146,6 +146,16 @@ window.habitrpg = angular.module('habitrpg',
|
||||
});
|
||||
}]
|
||||
})
|
||||
.state('options.social.challenges.edit', {
|
||||
url: '/:cid/edit',
|
||||
templateUrl: 'partials/options.social.challenges.detail.html',
|
||||
controller: ['$scope', 'Challenges', '$stateParams',
|
||||
function($scope, Challenges, $stateParams){
|
||||
$scope.obj = $scope.challenge = Challenges.Challenge.get({cid:$stateParams.cid}, function(){
|
||||
$scope.challenge._locked = false;
|
||||
});
|
||||
}]
|
||||
})
|
||||
.state('options.social.challenges.detail.member', {
|
||||
url: '/:uid',
|
||||
templateUrl: 'partials/options.social.challenges.detail.member.html',
|
||||
|
||||
Reference in New Issue
Block a user