From e7837af0e71a071a9f2ba81d176bb8dce764fa80 Mon Sep 17 00:00:00 2001 From: Aden Lindsay <140392385+AdenMGB@users.noreply.github.com> Date: Sun, 2 Feb 2025 10:05:13 +1030 Subject: [PATCH] feat(news): added ability to delete news articles --- components/DeleteNewsModal.vue | 72 ++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 components/DeleteNewsModal.vue diff --git a/components/DeleteNewsModal.vue b/components/DeleteNewsModal.vue new file mode 100644 index 00000000..475c8bd5 --- /dev/null +++ b/components/DeleteNewsModal.vue @@ -0,0 +1,72 @@ + + + + + + Delete Article + + + Are you sure you want to delete "{{ article?.title }}"? + + + This action cannot be undone. + + + + + deleteArticle()" + class="bg-red-600 text-white hover:bg-red-500" + > + Delete + + (article = undefined)" + class="inline-flex items-center rounded-md bg-zinc-800 px-3 py-2 text-sm font-semibold font-display text-white hover:bg-zinc-700" + > + Cancel + + + + + +
+ Are you sure you want to delete "{{ article?.title }}"? +
+ This action cannot be undone. +