icefoganalytics / travel-authorization

0 stars 0 forks source link

Supervisor: Travel Authorization: If I decline, I want to provide a reason #164

Closed klondikemarlen closed 8 months ago

klondikemarlen commented 8 months ago

Relates to:

Context

Give the Supervisor role the ability to provide a reason when declining a travel authorization.

Setup:

  1. Create a new travel request from the http://localhost:8080/my-travel-requests page.
  2. Fill in the "Details" section.
  3. Generate an estimate.
  4. Submit to a supervisor.
  5. Go to the "Manager View" from the top drop down menu.
  6. Find the travel request in the Pending Approvals dashboard widget and click on it.
  7. Find the "Deny" button in the bottom right corner of the manage page.

The Deny button should gain a dialog and provide the Supervisor an opportunity to provide a reason. The Approve button should also gain a confirmation dialog.