fix(cards): use copy-content icon for cloning cards

Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
This commit is contained in:
grnd-alt
2024-10-29 12:22:16 +01:00
committed by Julius Knorr
parent e436cb921a
commit 55c44ef6d4

View File

@@ -34,9 +34,11 @@
{{ t('deck', 'Move card') }} {{ t('deck', 'Move card') }}
</NcActionButton> </NcActionButton>
<NcActionButton v-if="canEdit" <NcActionButton v-if="canEdit"
icon="icon-external"
:close-after-click="true" :close-after-click="true"
@click="openCardCloneDialog"> @click="openCardCloneDialog">
<template #icon>
<CloneIcon :size="20" decorative />
</template>
{{ t('deck', 'Clone card') }} {{ t('deck', 'Clone card') }}
</NcActionButton> </NcActionButton>
<NcActionButton v-for="action in cardActions" <NcActionButton v-for="action in cardActions"
@@ -64,6 +66,7 @@
import { NcActionButton } from '@nextcloud/vue' import { NcActionButton } from '@nextcloud/vue'
import { mapGetters, mapState } from 'vuex' import { mapGetters, mapState } from 'vuex'
import ArchiveIcon from 'vue-material-design-icons/Archive.vue' 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 CardBulletedIcon from 'vue-material-design-icons/CardBulleted.vue'
import { generateUrl } from '@nextcloud/router' import { generateUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth' import { getCurrentUser } from '@nextcloud/auth'
@@ -74,7 +77,7 @@ import { emit } from '@nextcloud/event-bus'
export default { export default {
name: 'CardMenuEntries', name: 'CardMenuEntries',
components: { NcActionButton, ArchiveIcon, CardBulletedIcon }, components: { CloneIcon, NcActionButton, ArchiveIcon, CardBulletedIcon },
props: { props: {
card: { card: {
type: Object, type: Object,