GravityPDF / gravity-pdf

Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using Gravity Forms.
https://gravitypdf.com
88 stars 21 forks source link

License Key Deactivation Bug #1432

Closed jakejackson1 closed 1 year ago

jakejackson1 commented 1 year ago

Description

Deactivating a license that has already been deactivated via other means will produce an invalid UI state.

Step To Reproduce Steps to reproduce the behavior:

  1. Activate a License Key for a Gravity PDF extension at Forms -> Settings -> PDF -> License
  2. Go to GravityPDF.com/account/, locate the license key under Licenses, and then deactivate your site
  3. Back in WordPress, click the "Deactivate License" button, and you'll get an error about the license not being activated on the site

Expected behavior

At step 3, we should delete the license key from the database and now show the Deactivate License button any longer. The UI should be ready to accept a fresh license key to activate the plugin again.

Screenshots

Screenshot 2022-12-02 at 2 51 44 pm