Vue Attract: Sort/filterable table based on Vue
Initial commit implementing sortable and filterable tables for attract using Vue.
This commit is contained in:
20
src/scripts/js/es6/common/api/tasks.js
Normal file
20
src/scripts/js/es6/common/api/tasks.js
Normal file
@@ -0,0 +1,20 @@
|
||||
function thenGetTasks(parentId) {
|
||||
let where = {
|
||||
parent: parentId,
|
||||
node_type: 'attract_task'
|
||||
};
|
||||
return pillar.api.thenGetNodes(where);
|
||||
}
|
||||
|
||||
function thenGetProjectTasks(projectId) {
|
||||
let where = {
|
||||
project: projectId,
|
||||
node_type: 'attract_task'
|
||||
}
|
||||
let embedded = {
|
||||
parent: 1
|
||||
}
|
||||
return pillar.api.thenGetNodes(where, embedded);
|
||||
}
|
||||
|
||||
export { thenGetTasks, thenGetProjectTasks }
|
Reference in New Issue
Block a user