TakaOtaku / Digimon-Card-App

Website to keep track of your Digimon Card Collection and Build Decks with it.
MIT License
29 stars 16 forks source link

Forward/Back buttons in card modal don't work for decks #462

Closed dartanian300 closed 1 year ago

dartanian300 commented 1 year ago

The next/previous buttons in the card detail modal don't work as expected in the deck builder. When opening the modal via deck cards, the buttons do not show the next/previous cards in the deck. Instead, they show the card with the next card number (example: viewing ST7-01 and clicking next shows ST7-02). Sometimes the buttons don't work at all.

Additionally, the modal remembers the last card it showed. Steps to reproduce:

  1. Create a deck with ST7-01
  2. Open the card modal on the deck side of the page using ST7-01
  3. Click the next button to view ST7-02
  4. Close the modal
  5. Open the modal again
  6. This modal will be showing ST7-02 instead of ST7-01 since it was showing ST7-02 when it was closed.
Screen Shot 2023-01-06 at 2 04 21 PM
TakaOtaku commented 1 year ago

Yeah, that is true, I did take the easy way for that implementation.