When I approve a TA (eg. hit the Approve Button navigating to the TA from the manager view page). There is a pop-up saying that the approval was complete shows up. But I still have access to the approve and decline buttons. These should no longer be available and the approval should be written to the audit table above.
Implementation
Enable reactivity between approve/deny buttons and TravelAuthorizationActionLogsTable with standard pattern of exposing "refresh" and emiting updates.
Upgrade useTravelAuthorization pattern to use reactive props.
Lock approve/deny buttons after use.
Fixes https://github.com/icefoganalytics/travel-authorization/issues/153
Context
When I approve a TA (eg. hit the Approve Button navigating to the TA from the manager view page). There is a pop-up saying that the approval was complete shows up. But I still have access to the approve and decline buttons. These should no longer be available and the approval should be written to the audit table above.
Implementation
Enable reactivity between approve/deny buttons and TravelAuthorizationActionLogsTable with standard pattern of exposing "refresh" and emiting updates. Upgrade useTravelAuthorization pattern to use reactive props. Lock approve/deny buttons after use.
Screenshots
Before approval
After approval -> buttons disabled
Testing Instructions
dev test
(ordev test_api
)dev up