added notification message
parent
0fe948d9aa
commit
c9144d519b
|
@ -115,7 +115,7 @@ export default function GroupTasksViewModal({ isOpen }) {
|
|||
);
|
||||
};
|
||||
|
||||
const alertActionHandler = (status, taskStepId, index) => {
|
||||
const alertActionHandler = (status, taskStepId, index, notificationApi) => {
|
||||
switch (status) {
|
||||
case Constants.GROUP_TASKS_STATUS.FAILED:
|
||||
return (
|
||||
|
@ -130,7 +130,16 @@ export default function GroupTasksViewModal({ isOpen }) {
|
|||
</Button>
|
||||
);
|
||||
case Constants.GROUP_TASKS_STATUS.INPUT_REQUIRED:
|
||||
return <Button size="small">Continue</Button>;
|
||||
return (
|
||||
<Button
|
||||
size="small"
|
||||
onClick={() => {
|
||||
console.log("clicked continue");
|
||||
}}
|
||||
>
|
||||
Continue
|
||||
</Button>
|
||||
);
|
||||
default:
|
||||
notificationApi["error"]({
|
||||
message: `Alert action ${status} not implemented`,
|
||||
|
@ -210,7 +219,8 @@ export default function GroupTasksViewModal({ isOpen }) {
|
|||
action={alertActionHandler(
|
||||
groupTaskSteps[index].Status,
|
||||
groupTaskSteps[index].Id,
|
||||
index
|
||||
index,
|
||||
notificationApi
|
||||
)}
|
||||
/>
|
||||
</>
|
||||
|
|
Loading…
Reference in New Issue