Support CRUDing records on Admin page

TL;DR:
- Prefer the more precise verbiage, "Accounts", to "Users"
- Add username field to Trip instead of relying on session.username
- Ensure that decodeRole can JD.fail for invalid inputs
This commit is contained in:
William Carroll 2020-08-02 15:15:01 +01:00
parent 81c3db20d4
commit fe609bbe58
4 changed files with 171 additions and 87 deletions

View file

@ -89,7 +89,7 @@ renderTrip trip =
, UI.wrapNoPrint
(UI.textButton
{ label = "Delete"
, handleClick = State.AttemptDeleteTrip trip.destination trip.startDate
, handleClick = State.AttemptDeleteTrip trip
}
)
]