Fix list duplicate component
This commit is contained in:
parent
06b0318ac5
commit
63f70fed58
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<create-edit
|
||||
title="Duplicate this list"
|
||||
primary-icon="copy"
|
||||
primary-icon="paste"
|
||||
primary-label="Duplicate"
|
||||
@primary="duplicateList"
|
||||
:loading="listDuplicateService.loading"
|
||||
|
@ -15,6 +15,7 @@
|
|||
import ListDuplicateService from '@/services/listDuplicateService'
|
||||
import NamespaceSearch from '@/components/namespace/namespace-search'
|
||||
import ListDuplicateModel from '@/models/listDuplicateModel'
|
||||
import CreateEdit from '@/components/misc/create-edit'
|
||||
|
||||
export default {
|
||||
name: 'list-setting-duplicate',
|
||||
|
@ -25,6 +26,7 @@ export default {
|
|||
}
|
||||
},
|
||||
components: {
|
||||
CreateEdit,
|
||||
NamespaceSearch,
|
||||
},
|
||||
created() {
|
||||
|
@ -36,7 +38,7 @@ export default {
|
|||
},
|
||||
duplicateList() {
|
||||
const listDuplicate = new ListDuplicateModel({
|
||||
listId: this.$route.listId,
|
||||
listId: this.$route.params.listId,
|
||||
namespaceId: this.selectedNamespace.id,
|
||||
})
|
||||
this.listDuplicateService.create(listDuplicate)
|
||||
|
|
Reference in New Issue