vikunja-frontend/src/models/listDuplicateModel.js
konrad a9e8a3969b Add list duplicate (#172)
Add list duplicate

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/172
2020-06-30 20:53:25 +00:00

17 lines
No EOL
304 B
JavaScript

import AbstractModel from './abstractModel'
import ListModel from './list'
export default class ListDuplicateModel extends AbstractModel {
constructor(data) {
super(data)
this.list = new ListModel(this.list)
}
defaults() {
return {
listId: 0,
namespaceId: 0,
list: ListModel,
}
}
}