mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Added translation functions to task types
This commit is contained in:
@@ -212,7 +212,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
|
||||
};
|
||||
|
||||
$scope.removeTask = function(task, list) {
|
||||
if (!confirm(window.env.t('sureDelete', {taskType: task.type, taskText: task.text}))) return;
|
||||
if (!confirm(window.env.t('sureDelete', {taskType: window.env.t(task.type), taskText: task.text}))) return;
|
||||
//TODO persist
|
||||
// User.log({op: "delTask", data: task});
|
||||
_.remove(list, task);
|
||||
|
||||
Reference in New Issue
Block a user