import $ from 'jquery';
-export function getQueue () {
+export function getQueue (data) {
let url = baseUrl + '/api/ce/queue';
- return $.get(url);
+ return $.get(url, data);
}
export function getActivity (data) {
};
},
- filterQueueForComponent(queue) {
- if (this.props.options.componentId) {
- return queue.filter(task => {
- return task.componentId === this.props.options.componentId;
- });
- } else {
- return queue;
- }
- },
-
componentDidMount() {
this.requestData();
},
},
requestQueue() {
+ let filters = this.getComponentFilter();
if (!Object.keys(this.getCurrentFilters()).length) {
- getQueue().done(queue => {
- let tasks = this.filterQueueForComponent(queue.tasks);
+ getQueue(filters).done(queue => {
+ let tasks = queue.tasks;
this.setState({
queue: this.orderTasks(tasks),
pendingCount: this.countPending(tasks),