SaltDnsWeb.Console.Hooks (Salt v1.0.0)

on_mount hooks of the console.

  • :load_org - for routes with an org_id: loads the signed-in user's organisations and the current one. An organisation the user is not a member of is sent back to the chooser, as if it did not exist. Assigns :organisations, :organisation, :role, :admin?, :actor (for SaltDns.Access) and :audit_actor (for SaltDns.Zones).
  • :load_zone - for routes with a zone name: loads that zone of the current organisation (:zone), or goes back to the zone list.

Summary

Functions

on_mount(atom, map, session, socket)