Skip to content

Commit

Permalink
fix(applet): show delete icon only when editable
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jun 18, 2024
1 parent bd0cc77 commit 722220d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/applet/src/components/state/StateFieldEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function quickEditNum(v: number | string, offset: 1 | -1) {
</template>
</template>
<!-- delete prop, only appear if depth > 0 -->
<VueButton v-if="!props.disableEdit && depth > 0" v-bind="iconButtonProps" :class="buttonClass" @click.stop="quickEdit(rawValue, true)">
<VueButton v-if="!props.disableEdit && depth > 0 && data.editable" v-bind="iconButtonProps" :class="buttonClass" @click.stop="quickEdit(rawValue, true)">
<template #icon>
<VueIcon icon="i-material-symbols-delete-rounded" />
</template>
Expand Down

0 comments on commit 722220d

Please sign in to comment.