Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BO32 - Add the capability to change Sponsorship levels' order #197

Open
gregoriopalama opened this issue Apr 17, 2024 · 0 comments
Open
Labels
help wanted Extra attention is needed task This is a Task. Contributors can work on this

Comments

@gregoriopalama
Copy link
Member

Modify the buttons added in #189 to change the order of a Sponsorship level.
When a level is the first in the list, then the "Put up" button must be disabled.
When a level is the last in the list, then the "Put down" button must be disabled.

Make sure that the list in the page is ordered by the position field for each sponsorship level.

When a level's position is changed by clicking on a button, we will have 2 levels that need the position to change. The call to the Sponsorship API to update the position must be done for the level with the lowest position value: this is because the endpoint will update the position for the other level too.

Depends on #183 and #189.

@gregoriopalama gregoriopalama added help wanted Extra attention is needed task This is a Task. Contributors can work on this labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed task This is a Task. Contributors can work on this
Projects
Status: Ready
Development

No branches or pull requests

1 participant