the-difference-engine / ksf

7 stars 1 forks source link

191 view documents redirect #401

Closed Geoff7709 closed 2 years ago

Geoff7709 commented 2 years ago

Zenhub Link:

https://app.zenhub.com/workspaces/ksf-5f23520d91f7ee00134cbaf6/issues/the-difference-engine/ksf/191

Describe the problem being solved:

If there are no attachments in google folder for the nomination, instead of redirecting to an empty folder, the app displays a message below the "View Documents" button telling the user there are no attachments for the nomination.

Impacted areas in the application:

The "Views Documents" button on the nomination banner of the nominations page

Describe the steps you took to test your changes:

I have tested the button on several files that have no attachments and it has the desired function, however, I don't believe I have any nominations with attachments in my local database that I can use to test the other case. I didn't touch any of that functionality, however, so it should still work with nominations that have attachments and display them.

If this ticket involves any UI or email changes, please provide a screenshot that shows the updated UI

Screenshot 2021-12-08 184037 List general components of the application that this PR will affect: nominationBanner.js PR checklist