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:
Keith Holliday
2017-02-27 14:56:34 -07:00
committed by GitHub
parent 68a042cdb9
commit 93befcebcc
12 changed files with 102 additions and 9 deletions

View File

@@ -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,
});
};