We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b98162a commit 915c0eaCopy full SHA for 915c0ea
2 files changed
.changeset/hungry-kids-dig.md
@@ -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
@@ -288,7 +288,7 @@ const modalTitle = computed(() => {
288
@click="handleAdd"
289
>{{ t('add') }}</a>
290
<a
291
- v-if="!disableTrash || !disableDelete"
+ v-if="!disableTrash && !disableDelete"
292
:class="{ 'cursor-not-allowed text-truegray-3 hover:text-truegray-3': tableLoading }"
293
@click="switchTrashAndList"
294
>
0 commit comments