openbazaar-desktop icon indicating copy to clipboard operation
openbazaar-desktop copied to clipboard

Move "Verified Only" Checkboxes to Moderators View

Open jjeffryes opened this issue 5 years ago • 0 comments

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.

jjeffryes avatar Feb 06 '20 20:02 jjeffryes