OpenBazaar / openbazaar-desktop

OpenBazaar 2.0 Desktop Client (talks to openbazaar-go server daemon)
MIT License
647 stars 186 forks source link

Move "Verified Only" Checkboxes to Moderators View #1866

Open jjeffryes opened 4 years ago

jjeffryes commented 4 years ago

In settings/store and the purchase screen, the checkbox for showing verified moderators only is part of the store and purchase views respectively. This requires a state change for the entire view when he checkbox is toggled, which in turn re-renders all the child views.

It would be ideal if the checkbox was part of the moderators view, since it's directly controlling that view, and the state of the checkbox really only matters to the moderators view.

My initial suggestion is to add a showVerifiedCtrl option to the moderators view, and if true, it will show a checkbox with a "Show Only Verified Moderators" label.

Then parent views could decide if the checkbox should be shown, but not need to re-reend when it's toggled.