Skip to content

Multiple API requests can happen with "Trigger manual action" button not disabled on first click

What

When triggering a manual action for a job in the UI.

Problem

The redirect does not happen immediately and there is a slight delay. During that delay the user can click the action button multiple times and in return trigger that action multiple times.

Solution

After the first click we should disable the button which will ensure the user cannot click the button multiple times.

Visual aid

Screen_Shot_2021-03-08_at_1.49.56_PM

Edited by Thao Yeager