enhance the CardDetails component to provide the not yet implemented delete functionality, that is accessed by the existing DeleteMdiButton
provide a callback handler for the button, that on click sends a delete request to the server with the id of the attached card (and categoryId)
emit and fire a new event reload to the CardsPage parent component.
the CardsPage on receiving the reload should trigger its (hidden) CardOverview child component to reload its contents - i.e. send a new getCards(categoryId) request to pull the new cards set (without the deleted card). This is necessary to not mismatch state items of overview with server state. As trigger mechanism, an additional prop in the CardIteratorcan be used - or even reuse the filter prop - to be decided.
enhance the CardDetails component to provide the not yet implemented delete functionality, that is accessed by the existing DeleteMdiButton
reload
to the CardsPage parent component.CardIterator
can be used - or even reuse the filter prop - to be decided.