Skip to content

Commit

Permalink
fix(cards): use copy-content icon for cloning cards
Browse files Browse the repository at this point in the history
Signed-off-by: grnd-alt <[email protected]>
  • Loading branch information
grnd-alt committed Oct 29, 2024
1 parent 45b60df commit 59606ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/cards/CardMenuEntries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
{{ t('deck', 'Move card') }}
</NcActionButton>
<NcActionButton v-if="canEdit"
icon="icon-external"
:close-after-click="true"
@click="openCardCloneDialog">
<template #icon>
<CloneIcon :size="20" decorative />
</template>
{{ t('deck', 'Clone card') }}
</NcActionButton>
<NcActionButton v-for="action in cardActions"
Expand Down Expand Up @@ -64,6 +66,7 @@
import { NcActionButton } from '@nextcloud/vue'
import { mapGetters, mapState } from 'vuex'
import ArchiveIcon from 'vue-material-design-icons/Archive.vue'
import CloneIcon from 'vue-material-design-icons/ContentCopy.vue'
import CardBulletedIcon from 'vue-material-design-icons/CardBulleted.vue'
import { generateUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
Expand All @@ -74,7 +77,7 @@ import { emit } from '@nextcloud/event-bus'

export default {
name: 'CardMenuEntries',
components: { NcActionButton, ArchiveIcon, CardBulletedIcon },
components: { CloneIcon, NcActionButton, ArchiveIcon, CardBulletedIcon },
props: {
card: {
type: Object,
Expand Down

0 comments on commit 59606ec

Please sign in to comment.