mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Tasks sort delete fix (#8526)
* Fixed task sorting * Add sync when group task is deleted * Added sync when user tasks reorder * Abstracted show logic and removed task grouping from group page * Fixed scope typo * Localized the default challenge short name * Removed default shortName * Fixed test for challenge shortName
This commit is contained in:
@@ -74,6 +74,7 @@ habitrpg.controller('GroupTasksCtrl', ['$scope', 'Shared', 'Tasks', 'User', '$ro
|
||||
if (group._id) Tasks.deleteTask(task._id);
|
||||
var index = group[task.type + 's'].indexOf(task);
|
||||
group[task.type + 's'].splice(index, 1);
|
||||
$rootScope.$broadcast('obj-updated', $scope.group);
|
||||
};
|
||||
|
||||
$scope.saveTask = function(task, stayOpen, isSaveAndClose) {
|
||||
|
||||
Reference in New Issue
Block a user