Skip to content

Commit 6a8e9cb

Browse files
committed
PRO-8220: "button: true" works again for piece module utility operations
1 parent 160825e commit 6a8e9cb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* The `?render-areas=1` API feature now correctly disregards areas in separate documents loaded via relationship fields. Formerly their presence resulted in an error, not a rendering.
1616
* Make conditional fields work in Image Editor.
1717
* Importing a custom icon from an npm module using a `~` path per the admin UI now works per the documentation, as long as the Vue component used for the icon is structured like those found in `@apostrophecms/vue-material-design-icons`.
18+
* The `button: true` flag works again for piece module utility operations. Previously the button appeared but did not trigger the desired operation.
1819

1920
### Changes
2021

modules/@apostrophecms/piece-type/ui/apos/components/AposUtilityOperations.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
:key="button.action"
99
type="default"
1010
:icon-only="button.iconOnly"
11-
:icon="button.icon || false"
11+
:icon="button.icon || null"
1212
:label="button.label"
13-
@click="handleUtilityOperation(button.action)"
13+
@click="handleUtilityOperation(button)"
1414
/>
1515
<AposContextMenu
1616
v-if="utilityOperations.menu.length"

0 commit comments

Comments
 (0)