clone board func with labels and stacks

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-09-06 09:32:52 +02:00
parent cba7525951
commit 36afac9eff
6 changed files with 98 additions and 0 deletions

View File

@@ -135,6 +135,21 @@ export class BoardApi {
})
}
cloneBoard(board) {
return axios.post(this.url(`/boards/${board.id}/clone`))
.then(
(response) => {
return Promise.resolve(response.data)
},
(err) => {
return Promise.reject(err)
}
)
.catch((err) => {
return Promise.reject(err)
})
}
// Label API Calls
deleteLabel(id) {
return axios.delete(this.url(`/labels/${id}`))