Skip to content

Commit cc4f055

Browse files
feat: show duplicate button in sidebar too
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
1 parent 210abad commit cc4f055

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/views/AppSidebar.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
116116
</template>
117117
{{ t('tasks', 'Export') }}
118118
</NcActionLink>
119+
<NcActionButton v-if="!readOnly"
120+
:close-after-click="true"
121+
@click="duplicateTask({ task })">
122+
<template #icon>
123+
<ContentDuplicate :size="20" />
124+
</template>
125+
{{ t('tasks', 'Duplicate task') }}
126+
</NcActionButton>
119127
<NcActionButton v-if="!readOnly"
120128
@click="scheduleTaskDeletion(task)">
121129
<template #icon>
@@ -304,6 +312,7 @@ import Calendar from 'vue-material-design-icons/Calendar.vue'
304312
import CalendarCheck from 'vue-material-design-icons/CalendarCheck.vue'
305313
import CalendarEnd from 'vue-material-design-icons/CalendarEnd.vue'
306314
import CalendarStart from 'vue-material-design-icons/CalendarStart.vue'
315+
import ContentDuplicate from 'vue-material-design-icons/ContentDuplicate.vue'
307316
import Delete from 'vue-material-design-icons/TrashCanOutline.vue'
308317
import Download from 'vue-material-design-icons/TrayArrowDown.vue'
309318
import InformationOutline from 'vue-material-design-icons/InformationOutline.vue'
@@ -337,6 +346,7 @@ export default {
337346
CalendarEnd,
338347
CalendarStart,
339348
CalendarCheck,
349+
ContentDuplicate,
340350
Delete,
341351
Download,
342352
InformationOutline,
@@ -751,6 +761,7 @@ export default {
751761
'setStatus',
752762
'getTaskByUri',
753763
'togglePinned',
764+
'duplicateTask',
754765
]),
755766
756767
async loadTask() {

0 commit comments

Comments
 (0)