put copy logic into move dialog
Signed-off-by: grnd-alt <git@belakkaf.net>
This commit is contained in:
@@ -31,15 +31,7 @@
|
||||
icon="icon-external"
|
||||
:close-after-click="true"
|
||||
@click="openCardMoveDialog">
|
||||
{{ t('deck', 'Move card') }}
|
||||
</NcActionButton>
|
||||
<NcActionButton v-if="canEdit"
|
||||
:close-after-click="true"
|
||||
@click="openCardCloneDialog">
|
||||
<template #icon>
|
||||
<CloneIcon :size="20" decorative />
|
||||
</template>
|
||||
{{ t('deck', 'Clone card') }}
|
||||
{{ t('deck', 'Move/copy card') }}
|
||||
</NcActionButton>
|
||||
<NcActionButton v-for="action in cardActions"
|
||||
:key="action.label"
|
||||
@@ -66,7 +58,6 @@
|
||||
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'
|
||||
@@ -77,7 +68,7 @@ import { emit } from '@nextcloud/event-bus'
|
||||
|
||||
export default {
|
||||
name: 'CardMenuEntries',
|
||||
components: { CloneIcon, NcActionButton, ArchiveIcon, CardBulletedIcon },
|
||||
components: { NcActionButton, ArchiveIcon, CardBulletedIcon },
|
||||
props: {
|
||||
card: {
|
||||
type: Object,
|
||||
@@ -177,9 +168,6 @@ export default {
|
||||
openCardMoveDialog() {
|
||||
emit('deck:card:show-move-dialog', this.card)
|
||||
},
|
||||
openCardCloneDialog() {
|
||||
emit('deck:card:show-clone-dialog', this.card)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user