TecKnow / muster-tools

A package for assigning players to tables at multi-table, walk-in gaming events.
GNU General Public License v3.0
0 stars 0 forks source link

Allow Tables to be removed through the client #20

Closed TecKnow closed 3 years ago

TecKnow commented 3 years ago

The functionality for removing a table already exists in the server's REST API and and the redux store, but there's no way to use it from the client.

Probably the most idiomatic way to do this is to create a "trash" drag target while a table is being dragged. Tables aren't currently draggable though and this would involve deeper integration between React Beautiful DND and the rest of the UI.

Probably the most straightforward way to do this is to add a delete button to each table. This might involve investigating new material-ui components that allow composition. I think <Card>s may be one example.