mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
tasks-fix-delete-message
This commit is contained in:
@@ -92,7 +92,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
||||
};
|
||||
|
||||
$scope.removeTask = function(task) {
|
||||
if (!confirm(window.env.t('sureDelete'))) return;
|
||||
if (!confirm(window.env.t('sureDelete', {taskType: task.type, taskText: task.text}))) return;
|
||||
User.user.ops.deleteTask({params:{id:task.id}})
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user