mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
feat(directives): move directive to be used in mobile from habitrpg
This commit is contained in:
parent
44af90bae7
commit
214facaa93
1 changed files with 12 additions and 1 deletions
|
|
@ -99,4 +99,15 @@
|
|||
}
|
||||
};
|
||||
});
|
||||
})()
|
||||
})()
|
||||
|
||||
habitrpg.directive('questRewards', ['$rootScope', function($rootScope){
|
||||
return {
|
||||
restrict: 'AE',
|
||||
templateUrl: 'partials/options.social.party.quest-rewards.html',
|
||||
link: function(scope, element, attrs){
|
||||
scope.header = attrs.header || 'Rewards';
|
||||
scope.quest = $rootScope.Content.quests[attrs.key];
|
||||
}
|
||||
}
|
||||
}]);
|
||||
Loading…
Reference in a new issue