refactor: add conditional delete button visibility in agencies management
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s

This commit is contained in:
puriphatt 2025-07-04 13:17:52 +07:00
parent f286f6a16e
commit d4cab27aaf
2 changed files with 6 additions and 4 deletions

View file

@ -63,6 +63,7 @@ const props = withDefaults(
readonly?: boolean;
isEdit?: boolean;
hideAction?: boolean;
hideDelete?: boolean;
dataId?: string;
}>(),
@ -486,7 +487,7 @@ watch(
type="button"
/>
<DeleteButton
v-if="!isEdit"
v-if="!isEdit && !hideDelete"
id="btn-info-basic-delete"
icon-only
@click="