a9e8a3969b
Add list duplicate Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/172
20 lines
No EOL
382 B
JavaScript
20 lines
No EOL
382 B
JavaScript
import AbstractService from './abstractService'
|
|
import listDuplicateModel from '../models/listDuplicateModel'
|
|
|
|
export default class ListDuplicateService extends AbstractService {
|
|
constructor() {
|
|
super({
|
|
create: '/lists/{listId}/duplicate',
|
|
})
|
|
}
|
|
|
|
beforeCreate(model) {
|
|
|
|
model.list = null
|
|
return model
|
|
}
|
|
|
|
modelFactory(data) {
|
|
return new listDuplicateModel(data)
|
|
}
|
|
} |