Changes to deactivate/reactivate products
Draft changes to to support deactivation/reactivation of products per comment on issue #66. First time I've tinkered with this code, and I'm not sure how to add the toggle button to the UI, but maybe these suggested changes help somebody get a head start with this feature?
Looks good so far. Thank you for opening the PR! Do you plan to add the UI toggle as well?
Do you plan to add the UI toggle as well?
Would like to try, but I'm not up to speed on the code base yet...could you point me to the right file? My idea would be to add a third button to go with the trashcan/delete and pencil/edit buttons, which would toggle the active state.
- that is good place on the UI
- fIle: static/components/stall-details/stall-details.html
- for toggle see the Activate/Deactivate component
- updateProduct() method is already there, it just needs to be called with the right value
- Is the PR ready for review? I see its not in
Draftanymore. - Please also take care to not fulfill orders that have disabled products.
- Is the PR ready for review? I see its not in
Draftanymore.
I thought it was, but I've noticed disabled products re-appear occasionally (even though they stay disabled on the merchant side). So maybe I need to track that down first.
- Please also take care to not fulfill orders that have disabled products.
Good idea, although I guess that should not be a normal occurrence.
Question... with this change, I get an error (below) on false values but not on true values:
Any idea why?
It's probably something dumb, but I'm having trouble tracking it down as I'm not seeing where the validation is being done in the code anywhere.
Any idea why?
- the error message suggests that the
tagsfield should be present (even if it is an empty list)
@rleed is this PR ready? will you continue on it or do you want me to take over (fine with me)?
@rleed is this PR ready? will you continue on it or do you want me to take over (fine with me)?
If you would be so kind as to take it over, that would be great. (I'm still missing a lot of understanding of the nostr library and vue.)
@rleed is this PR ready?
It works as committed, but editing a product results in the active switch getting set. I was trying to fix that when I ran into the nostr error above.
I see this was closed without merge or comment. Was this feature implemented elsewhere?