DEV: adds a task action bypassing the modal
This commit is contained in:
parent
0e0aa6a16f
commit
c553c039f0
|
@ -16,5 +16,15 @@ export default Ember.Service.extend({
|
||||||
username: topic.get("assigned_to_user.username")
|
username: topic.get("assigned_to_user.username")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
assignUserToTopic(user, topic) {
|
||||||
|
return ajax("/assign/assign", {
|
||||||
|
type: "PUT",
|
||||||
|
data: {
|
||||||
|
username: user.username,
|
||||||
|
topic_id: topic.id
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue