fix: update cancel button visibility logic in credit note form

This commit is contained in:
puriphatt 2025-02-24 16:24:53 +07:00
parent dc225ac31b
commit 3732aa9bf5

View file

@ -848,10 +848,7 @@ onMounted(async () => {
<UndoButton v-if="pageState.mode === 'edit'" outlined @click="undo()" />
<CancelButton
v-if="
pageState.mode === 'info' &&
creditNoteData?.creditNoteStatus === CreditNoteStatus.Waiting
"
v-if="pageState.mode !== 'edit'"
@click="closeTab()"
:label="$t('dialog.action.close')"
outlined