Skip to content

Commit 915c0ea

Browse files
committed
fix(curd): correct condition for trash button visibility to require both delete and trash permissions
1 parent b98162a commit 915c0ea

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/hungry-kids-dig.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@uozi-admin/curd": patch
3+
---
4+
5+
fix(curd): correct condition for trash button visibility to require both delete and trash permissions

packages/curd/src/components/StdCurd.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ const modalTitle = computed(() => {
288288
@click="handleAdd"
289289
>{{ t('add') }}</a>
290290
<a
291-
v-if="!disableTrash || !disableDelete"
291+
v-if="!disableTrash && !disableDelete"
292292
:class="{ 'cursor-not-allowed text-truegray-3 hover:text-truegray-3': tableLoading }"
293293
@click="switchTrashAndList"
294294
>

0 commit comments

Comments
 (0)