DEV: adds a task action bypassing the modal

This commit is contained in:
jjaffeux 2020-05-08 11:53:51 +02:00
parent 0e0aa6a16f
commit c553c039f0
1 changed files with 10 additions and 0 deletions

View File

@ -16,5 +16,15 @@ export default Ember.Service.extend({
username: topic.get("assigned_to_user.username")
}
});
},
assignUserToTopic(user, topic) {
return ajax("/assign/assign", {
type: "PUT",
data: {
username: user.username,
topic_id: topic.id
}
});
}
});