impress-org / give-double-the-donation

Integration with Double-the-Donation
GNU General Public License v3.0
0 stars 0 forks source link

DtD form settings should be hidden until Enabled #3

Closed mathetos closed 4 years ago

mathetos commented 4 years ago

User Story

As a GiveWP form creator, I don't want to see "Company Matching" fields unless I've Enabled Company Matching on my form.

Details

Currently the "Default Label" field is shown whether the feature is enabled on the form or not.

Expected Behavior

The "Default Label" field should not appear on the form until the feature is enabled.

Steps to Reproduce

  1. ACtivate the add-on
  2. Add the test API keys
  3. Go to edit an existing form and click on the "Company Matching" tab
  4. You'll see the "Default Label" field appears though the feature is set to "Disabled"

Visuals

image

Acceptance Criteria