Skip to content

Commit 652f795

Browse files
committed
Update ReportShow.vue
1 parent dc3511b commit 652f795

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

resources/js/pages/admin/ReportShow.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,13 @@
668668
v-model="adminNotes"
669669
@blur="saveAdminNotes"
670670
rows="4"
671+
:maxlength="1500"
671672
placeholder="Add notes about this report, your investigation, or actions taken..."
672673
class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none"
673674
></textarea>
675+
<p class="text-sm text-gray-400">
676+
{{ adminNotes?.length ?? 0 }}/1500
677+
</p>
674678
</div>
675679
</div>
676680
</div>
@@ -767,6 +771,22 @@ const dismissReport = async () => {
767771
}
768772
};
769773
774+
const deleteVideo = async () => {
775+
const result = await confirmModal(
776+
"Confirm Delete",
777+
`Are you sure you want to delete this video by <span class="font-bold">${report.value.content_preview?.account?.username}</span>? This action cannot be undone.`,
778+
"Delete Video",
779+
"Cancel",
780+
);
781+
782+
if (result) {
783+
const id = report.value.id;
784+
const response = await reportsApi.deleteVideo(id).finally(() => {
785+
router.push("/admin/reports");
786+
});
787+
}
788+
};
789+
770790
const deleteComment = async () => {
771791
const result = await confirmModal(
772792
"Confirm Delete",

0 commit comments

Comments
 (0)