Skip to content

Commit

Permalink
Merge pull request #9146 from jeffibm/fix-optimization-queue-report
Browse files Browse the repository at this point in the history
Fix Optimization Queue Report
  • Loading branch information
GilbertCherrie authored Apr 3, 2024
2 parents 81897ce + 20b2e12 commit 4fa3b5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/javascript/components/data-tables/optimization/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ const buttonData = (item) => ({
alt: __('Queue Report'),
disabled: false,
is_button: true,
onclick: `miqQueueReport(${item.id});`,
onclick: {
remote: true,
action: {
name: 'miqQueueReport',
id: item.id,
},
},
text: __('Queue Report'),
title: __('Queue Report'),
});
Expand Down
5 changes: 5 additions & 0 deletions app/javascript/helpers/custom-click-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const customJsAction = ({ action }) => {
window.miqOnClickSelectRbacTreeNode(action.treeId);
}
break;
case 'miqQueueReport':
if (action.id) {
miqQueueReport(action.id);
}
break;
default:
console.warn(`Unrecognized action name: ${action.name}`);
}
Expand Down

0 comments on commit 4fa3b5f

Please sign in to comment.