mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Tasks score notes (#8507)
* Added setting and modal for score notes * Added persistent score notes * Fixed linting issues and documented new field * Added max length to task score notes * Added check for score notes existence * Combined tasks perferences
This commit is contained in:
@@ -144,10 +144,13 @@ angular.module('habitrpg')
|
||||
});
|
||||
};
|
||||
|
||||
function scoreTask (taskId, direction) {
|
||||
function scoreTask (taskId, direction, body) {
|
||||
if (!body) body = {};
|
||||
|
||||
return $http({
|
||||
method: 'POST',
|
||||
url: '/api/v3/tasks/' + taskId + '/score/' + direction,
|
||||
data: body,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user