livebook/lib/livebook_web/live/hooks
Frank Hunleth 52e5273401
Support passing an MFA for customizing shutdown (#1519)
This commit lets you customize Livebook shutdown to gracefully power
off. One use case is for Nerves-based devices that need to do more than
call `System.stop/0` to power off.

This doesn't change the `LIVEBOOK_SHUTDOWN_ENABLED` environment
variable. It still works the same.

The `:shutdown_enabled` configuration is now `:shutdown_callback`. Valid
values are `nil` or an MFA. An unset or `nil` callback hides the
shutdown button in the UI.
2022-11-10 18:09:01 +01:00
..
auth_hook.ex Add support for widget binary payloads (#982) 2022-02-07 21:03:25 +01:00
policy_hook.ex Update to LV 0.18 (#1426) 2022-10-04 08:46:55 +02:00
sidebar_hook.ex Support passing an MFA for customizing shutdown (#1519) 2022-11-10 18:09:01 +01:00
user_hook.ex Update to LV 0.18 (#1426) 2022-10-04 08:46:55 +02:00