[Sprint/QuietQuial](feat}: Remembering previous state of recurring wire checkbox. #2001
Summary
Closes #2001 (closed)
To test,
Steps to test
- Log in
- Open up your local storage window
-
Go to /minds, click to open the Wire modal.
-
Default state should be off.
-
Check it.
-
You should see the storage item appear
preferred-recurring-wire-state
with the value1
. -
If you reload the page, and check back, the state should be loaded from the cookie and be on.
-
Check it off, the local storage item should update to 0.
-
Refresh, check the modal again, it should be off.
-
Send a recurring wire, check in
settings > subscriptions
that it is there and cancel it. -
Send a non-recurring wire. Check again but this time make sure it is not there.
Estimated Regression Scope
These changes affect the wire modal, specifically the checkbox - an error in here could cause problems for the whole modal, we should also be checking in your settings > subscriptions that none have been created after trying to send a wire.