-
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 #14 from DaleMcGrew/Dale_WCC_Dec31-2024
Added interface so HR team can set up onboarding tasks. Moved some svg icons to /img/global/svg-icons. Converted Header to functional component. pages/Tasks still is work in progress.
- Loading branch information
Showing
28 changed files
with
1,638 additions
and
148 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
File renamed without changes
File renamed without changes
File renamed without changes
5 changes: 5 additions & 0 deletions
5
src/img/global/svg-icons/we-vote-logo-horizontal-color-200x66.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
src/img/global/svg-icons/we-vote-logo-horizontal-color-dark-141x46.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
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 (taskGroupId = -1, taskDefinitionId = -1, incomingData = {}) { | ||
// console.log('TaskActions, taskSave taskDefinitionId:', taskDefinitionId, ', incomingData:', incomingData); | ||
const data = { | ||
taskDefinitionId, | ||
taskGroupId, | ||
...incomingData, | ||
}; | ||
Dispatcher.loadEndpoint('task-save', data); | ||
}, | ||
}; |
Oops, something went wrong.