Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export button functionality #1370

Merged
merged 6 commits into from
Feb 25, 2021
Merged

export button functionality #1370

merged 6 commits into from
Feb 25, 2021

Conversation

elizabeth-jimenez
Copy link

@elizabeth-jimenez elizabeth-jimenez commented Feb 17, 2021

Dual Merge: BE PR

To help burndown chart, will update export in another PR with payload update. WIP: waiting on AB payload updates.


export function availableBidderExport(cdo) {
return api()
.get(`${cdo ? '/cdo' : '/bureau'}/availablebidders/export/`)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@elizabeth-jimenez elizabeth-jimenez added WIP Work in progress and removed WIP Work in progress labels Feb 19, 2021
return api()
.get(`${cdo ? '/cdo' : '/bureau'}/availablebidders/export/`)
.then((response) => {
downloadFromResponse(response, 'TalentMap_Available_Bidders_export');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be good to add a timestamp to this so that if a user downloads multiple versions, they aren't just appended with (1), (2), (3), etc

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was already a timestamp coming through from the BE, but I added one to the alt title, as well 🦜 also updated the alt name to be more similar to the BE one.

@mjoyce91
Copy link

Can you take a look at the spinner shifting the content below it?

Feb-22-2021 12-07-29

@elizabeth-jimenez
Copy link
Author

Can you take a look at the spinner shifting the content below it?

Feb-22-2021 12-07-29

Got it 😫
The second to last commit keeps the bigger spinner. The last commit uses the smaller spinner.

@elizabeth-jimenez elizabeth-jimenez merged commit ab556e3 into dev Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants