Skip to content

[BUG]: Export Donations button state not updating #5744

Open

Description

@yashiyadav

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently you can export donations from the "All Donations" page. However, after the file is downloaded, the button remains in the "Please wait... " state

Expected Behavior

After downloading all donations export, button state remains at "Please wait..."

Image Image

Steps To Reproduce

  1. Log in as bank user
  2. Click on All Donations
  3. Click on "Export Donations"
  4. Observe file download but text remains "Please Wait..."

Environment

- OS:
- Node:
- npm:

Criteria for Completion

No response

Anything else?

No response

Code of Conduct

  • I've read the Code of Conduct and understand my responsibilities as a member of the Ruby for Good community

Activity

  1. yashiyadav commented on Oct 22, 2026

    @yashiyadav
    Author

    I would like to take this

  2. owens106 commented on Oct 22, 2026

    @owens106

    Similar to #5633, the download action does not refresh the page so the "Please wait..." tag from the disable_with attribute remains on the button.

    This attribute is added through the chain of: download_button_to --> _link_to.

    The fix can be similar to #5633 and opt the download buttons out of the disable_with attribute
    OR
    The fix can be to have some code to listen for the completion of the download and manually reset the button to enabled, which will clear the disable_with text

  3. dorner commented on Oct 23, 2026

    @dorner
    Collaborator

    This should be covered by #5725 - the same approach can be taken.

  4. WPTK commented on Nov 21, 2026

    @WPTK

    Hi! I'd like to work on this one. From a look at main, download_button_to only uses the background download controller when remote: true is passed (added in #5725). The "Export Donations" button in donations/index.html.erb doesn't pass it, so it stays on "Please wait…". My plan is to opt that button in and add a request spec. Could you assign it to me? @yashiyadav, you mentioned this earlier. Are you still working on it? Happy to step aside or coordinate. Note: I'm using Claude Code (an AI assistant) to help with this change, and I'll say so in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions