Skip to content

Commit

Permalink
Merge pull request Roguelike-Celebration#842 from nextlevelbanana/main
Browse files Browse the repository at this point in the history
map and rooms 2024
  • Loading branch information
apepers authored Aug 25, 2024
2 parents 6294306 + 6963dc6 commit ff466fc
Show file tree
Hide file tree
Showing 9 changed files with 474 additions and 771 deletions.
766 changes: 218 additions & 548 deletions server/src/rooms/data/roomData.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/admin/components/RoomList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function (props: {roomIds: string[]}) {

const onClick = async (e) => {
const roomId = e.target && e.target.getAttribute && e.target.getAttribute('data-room')
if (roomId) {
if (roomId && confirm('Did you save your changes?')) {
// TODO: This is bad compared to handling this async better
// The cobbler's children have no shoes.
const roomData = await getRoom(roomId)
Expand Down
Loading

0 comments on commit ff466fc

Please sign in to comment.