Pledges: Add UI for setting "deactivated" status (#115)

This adds the ability to deactivate/reactivate pledges from the wp-admin list table. Once deactivated, the pledge is removed from the "published" list, as if it were trashed. It is not rendered in the frontend pledge list either. You can still access the edit screen, but no edits can be made (saving the pledge is disabled by JS, as otherwise it would reactivate itself). This way we can remove a pledge, but still see the activity log.

Fixes #112
This commit is contained in:
Kelly Dwan 2019-12-05 13:20:11 -05:00 committed by GitHub
parent e4deb6809a
commit 8807efb96d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 187 additions and 22 deletions

View file

@ -52,6 +52,7 @@
margin-bottom: 1.5rem;
}
.pledge-contributors.pledge-status__5ftf-deactivated .resend-confirm,
.pledge-contributors.pledge-status__draft .resend-confirm {
display: none;
}