From ac33f7a39e9d3a6aed57f75996ff8717165dc0b2 Mon Sep 17 00:00:00 2001 From: wisskirchenj Date: Sat, 6 Apr 2024 23:06:38 +0200 Subject: [PATCH] slight impro --- frontend/src/feature/cards/pages/CardsPage.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/feature/cards/pages/CardsPage.vue b/frontend/src/feature/cards/pages/CardsPage.vue index 3af94ec..72738b3 100644 --- a/frontend/src/feature/cards/pages/CardsPage.vue +++ b/frontend/src/feature/cards/pages/CardsPage.vue @@ -96,9 +96,7 @@ const editForm = () => { uiState.value.display = 'form'; }; -const closeForm = () => { - uiState.value.formMode === 'edit' ? - uiState.value.display = 'details' : - uiState.value.display = 'cards'; +const closeForm = () => { // switch display to details for edit mode, cards for add mode + uiState.value.display = uiState.value.formMode === 'edit' ? 'details' : 'cards'; };