-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from SailingSteve/steveStaffClientFeb6-420pm
Got the drawers working again to reflect changes from invalidated queries
- Loading branch information
Showing
28 changed files
with
2,537 additions
and
2,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
import Dispatcher from '../common/dispatcher/Dispatcher'; | ||
|
||
export default { | ||
personListRetrieve (searchText = '') { | ||
// console.log('PersonActions, personListRetrieve searchText:', searchText); | ||
if (searchText) { | ||
Dispatcher.loadEndpoint('person-list-retrieve', { | ||
searchText, | ||
}); | ||
} else { | ||
Dispatcher.loadEndpoint('person-list-retrieve'); | ||
} | ||
}, | ||
|
||
personRetrieve (personId = '') { | ||
// console.log('PersonActions, personRetrieve personId:', personId); | ||
if (personId) { | ||
Dispatcher.loadEndpoint('person-retrieve', { | ||
personId, | ||
}); | ||
} else { | ||
Dispatcher.loadEndpoint('person-retrieve'); | ||
} | ||
}, | ||
|
||
personSave (personId = 0, incomingData = {}) { | ||
// console.log('PersonActions, personSave personId:', personId, ', incomingData:', incomingData); | ||
const data = { | ||
personId, | ||
...incomingData, | ||
}; | ||
Dispatcher.loadEndpoint('person-save', data); | ||
}, | ||
}; | ||
// import Dispatcher from '../common/dispatcher/Dispatcher'; | ||
// | ||
// export default { | ||
// personListRetrieve (searchText = '') { | ||
// // console.log('PersonActions, personListRetrieve searchText:', searchText); | ||
// if (searchText) { | ||
// Dispatcher.loadEndpoint('person-list-retrieve', { | ||
// searchText, | ||
// }); | ||
// } else { | ||
// Dispatcher.loadEndpoint('person-list-retrieve'); | ||
// } | ||
// }, | ||
// | ||
// personRetrieve (personId = '') { | ||
// // console.log('PersonActions, personRetrieve personId:', personId); | ||
// if (personId) { | ||
// Dispatcher.loadEndpoint('person-retrieve', { | ||
// personId, | ||
// }); | ||
// } else { | ||
// Dispatcher.loadEndpoint('person-retrieve'); | ||
// } | ||
// }, | ||
// | ||
// personSave (personId = 0, incomingData = {}) { | ||
// // console.log('PersonActions, personSave personId:', personId, ', incomingData:', incomingData); | ||
// const data = { | ||
// personId, | ||
// ...incomingData, | ||
// }; | ||
// Dispatcher.loadEndpoint('person-save', data); | ||
// }, | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
import Dispatcher from '../common/dispatcher/Dispatcher'; | ||
|
||
export default { | ||
taskDefinitionListRetrieve (taskGroupId, searchText = '') { | ||
// console.log('TaskActions, taskDefinitionListRetrieve searchText:', searchText); | ||
if (searchText) { | ||
Dispatcher.loadEndpoint('task-definition-list-retrieve', { | ||
taskGroupId, | ||
searchText, | ||
}); | ||
} else { | ||
Dispatcher.loadEndpoint('task-definition-list-retrieve', { | ||
taskGroupId, | ||
}); | ||
} | ||
}, | ||
|
||
taskDefinitionSave (taskGroupId = -1, taskDefinitionId = -1, incomingData = {}) { | ||
// console.log('TaskActions, taskSave taskDefinitionId:', taskDefinitionId, ', incomingData:', incomingData); | ||
const data = { | ||
taskDefinitionId, | ||
taskGroupId, | ||
...incomingData, | ||
}; | ||
Dispatcher.loadEndpoint('task-definition-save', data); | ||
}, | ||
|
||
taskGroupListRetrieve (searchText = '') { | ||
// console.log('TaskActions, taskGroupListRetrieve searchText:', searchText); | ||
if (searchText) { | ||
Dispatcher.loadEndpoint('task-group-list-retrieve', { | ||
searchText, | ||
}); | ||
} else { | ||
Dispatcher.loadEndpoint('task-group-list-retrieve'); | ||
} | ||
}, | ||
|
||
taskGroupRetrieve (taskGroupId = '') { | ||
// console.log('TaskActions, taskGroupRetrieve taskGroupId:', taskGroupId); | ||
if (taskGroupId) { | ||
Dispatcher.loadEndpoint('task-group-retrieve', { | ||
taskGroupId, | ||
}); | ||
} else { | ||
Dispatcher.loadEndpoint('task-group-retrieve'); | ||
} | ||
}, | ||
|
||
taskGroupSave (taskGroupId = -1, incomingData = {}) { | ||
// console.log('TaskActions, taskGroupSave taskGroupId:', taskGroupId, ', incomingData:', incomingData); | ||
const data = { | ||
taskGroupId, | ||
...incomingData, | ||
}; | ||
Dispatcher.loadEndpoint('task-group-save', data); | ||
}, | ||
|
||
taskSave (personId = -1, taskDefinitionId = -1, taskGroupId = -1, incomingData = {}) { | ||
// console.log('TaskActions, taskSave personId:', personId, ', taskDefinitionId:', taskDefinitionId, ', ', taskGroupId:', taskGroupId, ', incomingData:', incomingData); | ||
const data = { | ||
personId, | ||
taskDefinitionId, | ||
taskGroupId, | ||
...incomingData, | ||
}; | ||
Dispatcher.loadEndpoint('task-save', data); | ||
}, | ||
|
||
taskStatusListRetrieve (personIdList = []) { | ||
// console.log('TaskActions, taskStatusListRetrieve personIdList:', personIdList); | ||
if (personIdList) { | ||
Dispatcher.loadEndpoint('task-status-list-retrieve', { | ||
personIdList, | ||
}); | ||
} else { | ||
Dispatcher.loadEndpoint('task-status-list-retrieve'); | ||
} | ||
}, | ||
}; | ||
// import Dispatcher from '../common/dispatcher/Dispatcher'; | ||
// | ||
// export default { | ||
// taskDefinitionListRetrieve (taskGroupId, searchText = '') { | ||
// // console.log('TaskActions, taskDefinitionListRetrieve searchText:', searchText); | ||
// if (searchText) { | ||
// Dispatcher.loadEndpoint('task-definition-list-retrieve', { | ||
// taskGroupId, | ||
// searchText, | ||
// }); | ||
// } else { | ||
// Dispatcher.loadEndpoint('task-definition-list-retrieve', { | ||
// taskGroupId, | ||
// }); | ||
// } | ||
// }, | ||
// | ||
// taskDefinitionSave (taskGroupId = -1, taskDefinitionId = -1, incomingData = {}) { | ||
// // console.log('TaskActions, taskSave taskDefinitionId:', taskDefinitionId, ', incomingData:', incomingData); | ||
// const data = { | ||
// taskDefinitionId, | ||
// taskGroupId, | ||
// ...incomingData, | ||
// }; | ||
// Dispatcher.loadEndpoint('task-definition-save', data); | ||
// }, | ||
// | ||
// taskGroupListRetrieve (searchText = '') { | ||
// // console.log('TaskActions, taskGroupListRetrieve searchText:', searchText); | ||
// if (searchText) { | ||
// Dispatcher.loadEndpoint('task-group-list-retrieve', { | ||
// searchText, | ||
// }); | ||
// } else { | ||
// Dispatcher.loadEndpoint('task-group-list-retrieve'); | ||
// } | ||
// }, | ||
// | ||
// taskGroupRetrieve (taskGroupId = '') { | ||
// // console.log('TaskActions, taskGroupRetrieve taskGroupId:', taskGroupId); | ||
// if (taskGroupId) { | ||
// Dispatcher.loadEndpoint('task-group-retrieve', { | ||
// taskGroupId, | ||
// }); | ||
// } else { | ||
// Dispatcher.loadEndpoint('task-group-retrieve'); | ||
// } | ||
// }, | ||
// | ||
// taskGroupSave (taskGroupId = -1, incomingData = {}) { | ||
// // console.log('TaskActions, taskGroupSave taskGroupId:', taskGroupId, ', incomingData:', incomingData); | ||
// const data = { | ||
// taskGroupId, | ||
// ...incomingData, | ||
// }; | ||
// Dispatcher.loadEndpoint('task-group-save', data); | ||
// }, | ||
// | ||
// taskSave (personId = -1, taskDefinitionId = -1, taskGroupId = -1, incomingData = {}) { | ||
// // console.log('TaskActions, taskSave personId:', personId, ', taskDefinitionId:', taskDefinitionId, ', ', taskGroupId:', taskGroupId, ', incomingData:', incomingData); | ||
// const data = { | ||
// personId, | ||
// taskDefinitionId, | ||
// taskGroupId, | ||
// ...incomingData, | ||
// }; | ||
// Dispatcher.loadEndpoint('task-save', data); | ||
// }, | ||
// | ||
// taskStatusListRetrieve (personIdList = []) { | ||
// // console.log('TaskActions, taskStatusListRetrieve personIdList:', personIdList); | ||
// if (personIdList) { | ||
// Dispatcher.loadEndpoint('task-status-list-retrieve', { | ||
// personIdList, | ||
// }); | ||
// } else { | ||
// Dispatcher.loadEndpoint('task-status-list-retrieve'); | ||
// } | ||
// }, | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
import Dispatcher from '../common/dispatcher/Dispatcher'; | ||
import PersonStore from '../stores/PersonStore'; // eslint-disable-line import/no-cycle | ||
import TeamStore from '../stores/TeamStore'; // eslint-disable-line import/no-cycle | ||
|
||
export default { | ||
addPersonToTeam (personId, teamId) { | ||
// console.log('TeamActions, addPersonToTeam personId:', personId, ', teamId:', teamId); | ||
const teamMemberFirstName = PersonStore.getFirstName(personId) || ''; | ||
const teamMemberLastName = PersonStore.getLastName(personId) || ''; | ||
const teamName = TeamStore.getTeamName(teamId) || ''; | ||
const data = { | ||
personId, | ||
teamId, | ||
teamMemberFirstName, | ||
teamMemberLastName, | ||
teamName, | ||
}; | ||
Dispatcher.loadEndpoint('add-person-to-team', data); | ||
}, | ||
|
||
removePersonFromTeam (personId, teamId) { | ||
// console.log('TeamActions, removePersonFromTeam personId:', personId, ', teamId:', teamId); | ||
const data = { | ||
personId, | ||
teamId, | ||
}; | ||
Dispatcher.loadEndpoint('remove-person-from-team', data); | ||
}, | ||
|
||
teamRetrieve (teamId = '') { | ||
// console.log('TeamActions, teamRetrieve teamId:', teamId); | ||
if (teamId) { | ||
Dispatcher.loadEndpoint('team-retrieve', { | ||
teamId, | ||
}); | ||
} else { | ||
Dispatcher.loadEndpoint('team-retrieve'); | ||
} | ||
}, | ||
|
||
teamListRetrieve () { | ||
// console.log('TeamActions, teamListRetrieve'); | ||
Dispatcher.loadEndpoint('team-list-retrieve'); | ||
}, | ||
|
||
teamSave (teamId = '', incomingData = {}) { | ||
// console.log('PersonActions, teamSave teamId:', teamId, ', incomingData:', incomingData); | ||
const data = { | ||
teamId, | ||
...incomingData, | ||
}; | ||
Dispatcher.loadEndpoint('team-save', data); | ||
}, | ||
}; | ||
// import Dispatcher from '../common/dispatcher/Dispatcher'; | ||
// import PersonStore from '../stores/PersonStore'; // eslint-disable-line import/no-cycle | ||
// import TeamStore from '../stores/TeamStore'; // eslint-disable-line import/no-cycle | ||
// | ||
// export default { | ||
// addPersonToTeam (personId, teamId) { | ||
// // console.log('TeamActions, addPersonToTeam personId:', personId, ', teamId:', teamId); | ||
// const teamMemberFirstName = PersonStore.getFirstName(personId) || ''; | ||
// const teamMemberLastName = PersonStore.getLastName(personId) || ''; | ||
// const teamName = TeamStore.getTeamName(teamId) || ''; | ||
// const data = { | ||
// personId, | ||
// teamId, | ||
// teamMemberFirstName, | ||
// teamMemberLastName, | ||
// teamName, | ||
// }; | ||
// Dispatcher.loadEndpoint('add-person-to-team', data); | ||
// }, | ||
// | ||
// removePersonFromTeam (personId, teamId) { | ||
// // console.log('TeamActions, removePersonFromTeam personId:', personId, ', teamId:', teamId); | ||
// const data = { | ||
// personId, | ||
// teamId, | ||
// }; | ||
// Dispatcher.loadEndpoint('remove-person-from-team', data); | ||
// }, | ||
// | ||
// teamRetrieve (teamId = '') { | ||
// // console.log('TeamActions, teamRetrieve teamId:', teamId); | ||
// if (teamId) { | ||
// Dispatcher.loadEndpoint('team-retrieve', { | ||
// teamId, | ||
// }); | ||
// } else { | ||
// Dispatcher.loadEndpoint('team-retrieve'); | ||
// } | ||
// }, | ||
// | ||
// teamListRetrieve () { | ||
// // console.log('TeamActions, teamListRetrieve'); | ||
// Dispatcher.loadEndpoint('team-list-retrieve'); | ||
// }, | ||
// | ||
// teamSave (teamId = '', incomingData = {}) { | ||
// // console.log('PersonActions, teamSave teamId:', teamId, ', incomingData:', incomingData); | ||
// const data = { | ||
// teamId, | ||
// ...incomingData, | ||
// }; | ||
// Dispatcher.loadEndpoint('team-save', data); | ||
// }, | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.