File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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'
304312import CalendarCheck from ' vue-material-design-icons/CalendarCheck.vue'
305313import CalendarEnd from ' vue-material-design-icons/CalendarEnd.vue'
306314import CalendarStart from ' vue-material-design-icons/CalendarStart.vue'
315+ import ContentDuplicate from ' vue-material-design-icons/ContentDuplicate.vue'
307316import Delete from ' vue-material-design-icons/TrashCanOutline.vue'
308317import Download from ' vue-material-design-icons/TrayArrowDown.vue'
309318import 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 () {
You can’t perform that action at this time.
0 commit comments