Skip to content
Snippets Groups Projects
Commit 2fba9cba authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Update url:s for editing comments.

parent 0fec3d1e
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
{% endif %} {% endif %}
{% if editable %} {% if editable %}
<div class="feed__comment js-comment" data-id="{{activity.id}}" data-comment="{{activity|display_for:request.user|to_markdown}}" data-edit-url="{% url 'funds:api:comments:edit' pk=activity.pk %}"> <div class="feed__comment js-comment" data-id="{{activity.id}}" data-comment="{{activity|display_for:request.user|to_markdown}}" data-edit-url="{% url 'api:v1:comments:edit' pk=activity.pk %}">
{{ activity|display_for:request.user|submission_links|markdown|bleach }} {{ activity|display_for:request.user|submission_links|markdown|bleach }}
</div> </div>
......
...@@ -33,7 +33,7 @@ export function createNoteForSubmission(submissionID, note) { ...@@ -33,7 +33,7 @@ export function createNoteForSubmission(submissionID, note) {
export function editNoteForSubmission(note) { export function editNoteForSubmission(note) {
return { return {
path: `/apply/api/comments/${note.id}/edit/`, path: `/v1/comments/${note.id}/edit/`,
method: 'POST', method: 'POST',
options: { options: {
body: JSON.stringify({ message: note.message }), body: JSON.stringify({ message: note.message }),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment