youyesyet.canvasser-app.handlers
Canvasser app event handlers.
add-to-key
(add-to-key db k x)Return a copy of db with x added to the front of the list of items held against the key k
clear-messages
(clear-messages state)Return a state like this state except with the error and feedback messages set nil
get-elector
(get-elector elector-id state)(get-elector elector-id state address)Return the elector at this address (or the current address if not specified) with this id.
handle-forbidden
(handle-forbidden response & forms)If response has status 403 (forbidden) redirect to the login page.