diff --git a/app/views/admin/feedback_messages/_feedback_message.html.erb b/app/views/admin/feedback_messages/_feedback_message.html.erb
index 06c6f1780..49b6ab937 100644
--- a/app/views/admin/feedback_messages/_feedback_message.html.erb
+++ b/app/views/admin/feedback_messages/_feedback_message.html.erb
@@ -145,7 +145,7 @@
<%= text_area_tag :affected_email_body, affected_email_details[:body], class: "form-control my-1", style: "height: 300px;", id: "affected__body__#{feedback_message.id}" %>
-
+
@@ -154,7 +154,7 @@
Status:
<%= f.select :status, %w[Open Invalid Resolved], {}, id: "status__#{feedback_message.id}" %>
-
+
@@ -187,7 +187,7 @@
class="notefield"
id="note__content__<%= feedback_message.id %>"
required>
-
+
@@ -210,7 +210,7 @@
formData.append('id', id);
formData.append('status', statusSelectTag.options[statusSelectTag.selectedIndex].value);
- fetch(statusBtn.dataset.path, {
+ fetch("<%= save_status_admin_reports_path %>", {
method: 'POST',
headers: {
'X-CSRF-Token': document.querySelector("meta[name='csrf-token']").content,
@@ -277,7 +277,7 @@
formData.append('email_subject', subjectLine);
formData.append('email_type', userType);
- fetch(sendEmailBtn.dataset.path, {
+ fetch("<%= send_email_admin_reports_path %>", {
method: 'POST',
headers: {
'X-CSRF-Token': document.querySelector("meta[name='csrf-token']").content,
@@ -347,7 +347,7 @@
formData.append('noteable_type', document.getElementById('note__noteable-type__' + id).value)
formData.append('author_id', document.getElementById('note__author-id__' + id).value)
- fetch(submitNoteBtn.dataset.path, {
+ fetch("<%= create_note_admin_reports_path %>", {
method: 'POST',
headers: {
'X-CSRF-Token': document.querySelector("meta[name='csrf-token']").content,