about summary refs log tree commit diff
path: root/client/src/User.elm
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-02T14·15+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-02T14·15+0100
commitfe609bbe5804be229a7e5c0d276654fb3e45179b (patch)
treee939713105443914e045974c89e8f3cdf0c3294c /client/src/User.elm
parent81c3db20d4775a115f148ed64c5bc1e54c5a3b65 (diff)
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
Diffstat (limited to 'client/src/User.elm')
-rw-r--r--client/src/User.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/User.elm b/client/src/User.elm
index 660c3aa7dce0..0c87e85bf98b 100644
--- a/client/src/User.elm
+++ b/client/src/User.elm
@@ -89,7 +89,7 @@ renderTrip trip =
         , UI.wrapNoPrint
             (UI.textButton
                 { label = "Delete"
-                , handleClick = State.AttemptDeleteTrip trip.destination trip.startDate
+                , handleClick = State.AttemptDeleteTrip trip
                 }
             )
         ]