From f94309a7f17484754fe2ef11bf44c08ede0eb585 Mon Sep 17 00:00:00 2001 From: Brock Anderson Date: Fri, 16 Aug 2024 12:05:38 -0700 Subject: [PATCH] feat: admin announcement preview updates (#656) --- .../src/components/AddAnnouncementPage.vue | 7 ++-- .../src/components/EditAnnouncementPage.vue | 7 ++-- .../__tests__/EditAnnouncementPage.spec.ts | 11 +++--- .../announcements/AnnouncementForm.vue | 35 +++++++++++++++---- .../announcementSelectionStore.spec.ts | 8 ++--- .../modules/announcementSelectionStore.ts | 20 +++++------ admin-frontend/src/types/announcements.ts | 6 ++++ 7 files changed, 64 insertions(+), 30 deletions(-) diff --git a/admin-frontend/src/components/AddAnnouncementPage.vue b/admin-frontend/src/components/AddAnnouncementPage.vue index 002796882..32578258f 100644 --- a/admin-frontend/src/components/AddAnnouncementPage.vue +++ b/admin-frontend/src/components/AddAnnouncementPage.vue @@ -3,12 +3,15 @@ :announcement="null" title="Add Announcement" @save="submit" - mode="create" + :mode="AnnouncementFormMode.CREATE" >