Skip to content

Commit

Permalink
slight impro
Browse files Browse the repository at this point in the history
  • Loading branch information
wisskirchenj committed Apr 6, 2024
1 parent 8d52f1a commit ac33f7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/feature/cards/pages/CardsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
};
</script>

0 comments on commit ac33f7a

Please sign in to comment.