fix: Expose card actions in the card menu (fix #3180)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -42,6 +42,13 @@
|
|||||||
<NcActionButton icon="icon-external" :close-after-click="true" @click="modalShow=true">
|
<NcActionButton icon="icon-external" :close-after-click="true" @click="modalShow=true">
|
||||||
{{ t('deck', 'Move card') }}
|
{{ t('deck', 'Move card') }}
|
||||||
</NcActionButton>
|
</NcActionButton>
|
||||||
|
<NcActionButton v-for="action in cardActions"
|
||||||
|
:key="action.label"
|
||||||
|
:close-after-click="true"
|
||||||
|
:icon="action.icon"
|
||||||
|
@click="action.callback(cardRichObject)">
|
||||||
|
{{ action.label }}
|
||||||
|
</NcActionButton>
|
||||||
<NcActionButton icon="icon-settings-dark" :close-after-click="true" @click="openCard">
|
<NcActionButton icon="icon-settings-dark" :close-after-click="true" @click="openCard">
|
||||||
<CardBulletedIcon slot="icon" :size="20" decorative />
|
<CardBulletedIcon slot="icon" :size="20" decorative />
|
||||||
{{ t('deck', 'Card details') }}
|
{{ t('deck', 'Card details') }}
|
||||||
@@ -122,6 +129,7 @@ export default {
|
|||||||
...mapGetters([
|
...mapGetters([
|
||||||
'isArchived',
|
'isArchived',
|
||||||
'boards',
|
'boards',
|
||||||
|
'cardActions',
|
||||||
]),
|
]),
|
||||||
...mapState({
|
...mapState({
|
||||||
showArchived: state => state.showArchived,
|
showArchived: state => state.showArchived,
|
||||||
|
|||||||
Reference in New Issue
Block a user