Store status change via Rest
Closes #818 (closed), part of #798 (closed)
What does this MR do?
Adds a new Rest endpoint stores/{storeId}/status/{status}
that allows changing a store's status and uses it for the dropdown menu on the store page instead of the old XHR requests. Also replaces the dropdown menu with a new vue component. The new menu does not have the default "Bitte auswählen..." option anymore, since a store should always have a team status.
How confident are you it won't break things if deployed?
Quite sure, seems to work for me and I added a unit test.
How to test
Steps a reviewer can take to verify that this MR does what it says it does e.g.
- Checkout branch locally
- Login as a store manager
- Go to a store's page
- Change the store's status with the dropdown menu below the team list
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s)) -
Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings
Edited by Alex