Skip to content

Commit

Permalink
fix: contract entry modal not resetting after closing
Browse files Browse the repository at this point in the history
#TIM-5 Fixed
  • Loading branch information
neferin12 committed Sep 5, 2024
1 parent 31384f9 commit a1acc6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/components/ContractEntryModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
hide-footer
no-close-on-backdrop
:title="t('edit_contract_data')"
@hidden="()=>{modalHidden = true}"
@show="()=>{modalHidden = false}"
>
<vue-json-form
v-if="!modalHidden"
class="w-100"
:jsonSchema="jsonSchema"
:uiSchema="uiSchema"
Expand Down Expand Up @@ -35,6 +38,8 @@ const { t } = useI18n();
const jsonSchema = getContractEntryJsonSchema(t);
const uiSchema = getContractEntryUiSchema(t);
const modalHidden = ref(false);
const props = defineProps<{
initialData?: saveContractDataParams;
cleanAfterSubmit?: boolean;
Expand Down

0 comments on commit a1acc6e

Please sign in to comment.