From 2fba9cba8ecd73082fcb2939e78f2e93a7bfa44e Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Tue, 22 Oct 2019 10:41:55 +0200 Subject: [PATCH] Update url:s for editing comments. --- .../apply/activity/templates/activity/include/listing_base.html | 2 +- opentech/static_src/src/app/src/api/notes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opentech/apply/activity/templates/activity/include/listing_base.html b/opentech/apply/activity/templates/activity/include/listing_base.html index 5dce52086..ff5e7d815 100644 --- a/opentech/apply/activity/templates/activity/include/listing_base.html +++ b/opentech/apply/activity/templates/activity/include/listing_base.html @@ -36,7 +36,7 @@ {% endif %} {% 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 }} </div> diff --git a/opentech/static_src/src/app/src/api/notes.js b/opentech/static_src/src/app/src/api/notes.js index 7f6de3c32..1035f1e3f 100644 --- a/opentech/static_src/src/app/src/api/notes.js +++ b/opentech/static_src/src/app/src/api/notes.js @@ -33,7 +33,7 @@ export function createNoteForSubmission(submissionID, note) { export function editNoteForSubmission(note) { return { - path: `/apply/api/comments/${note.id}/edit/`, + path: `/v1/comments/${note.id}/edit/`, method: 'POST', options: { body: JSON.stringify({ message: note.message }), -- GitLab