mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
* Added initial group tasks ui * Changed group compnent directory * Added group task checklist support * Added checklist support to ui * Fixed delete tags route * Added checklist routes to support new group tasks * Added assign user tag input * Added new group members autocomplete directive * Linked assign ui to api * Added styles * Limited tag use * Fixed line endings * Updated to new file structure * Fixed failing task tests * Updatd with new checklist logic and fixed columns * Added purchased info to group and prevented non purchased group from seeing new group tasks * Updated add task function * Added userid check back to tag routes * Marked tag tests as pending * Added comments to pending tests * Added back routes accidently deleted * Added locale strings * Other clarity fixes * Moved common task function to task service * Removed files from manifest * Fixed naming collision and remove logic * Removed group get tasks until live * Fixed test to check update task. Removed extra removeTask call. Synced updated checklists. Added purchased to noset * Fixed delete group task
14 lines
430 B
JavaScript
14 lines
430 B
JavaScript
habitrpg.controller('GroupTaskActionsCtrl', ['$scope', 'Shared', 'Tasks', 'User',
|
|
function ($scope, Shared, Tasks, User) {
|
|
$scope.assignedMembers = [];
|
|
$scope.user = User.user;
|
|
|
|
$scope.$on('addedGroupMember', function(evt, userId) {
|
|
Tasks.assignTask($scope.task.id, userId);
|
|
});
|
|
|
|
$scope.$on('removedGroupMember', function(evt, userId) {
|
|
Tasks.unAssignTask($scope.task.id, userId);
|
|
});
|
|
}]);
|