snappymail/snappymail/v/0.0.0/app
Fathi Ben Nasr 548e2fdc11 Let plugins register a navigation entry
A plugin that adds a screen has no way to offer a way into it. The
folder list toolbar holds Compose and Contacts, and nothing else can be
added to it, so plugins reach into the UI themselves: polling for an
existing button, replacing its icon and hanging a menu off it. That is
fragile, it varies per plugin, and it puts screens somewhere users do
not look for them.

rl.addNavEntry({icon, title, hash}) appends an entry to that toolbar,
rendered with the same .btn classes so it follows the active theme.
click may be given instead of hash for a popup rather than a route.

Three lines of template, one observableArray, one function, and no
change to existing behaviour when no plugin registers anything.
2026-08-14 11:04:25 +00:00
..
domains Disable OBJECTID capability by default due to #1640 2024-06-25 03:29:46 +02:00
libraries Catch Throwable for #1914 2025-06-16 17:35:11 +02:00
localization Merge pull request #1875 from bapt/fr 2025-06-16 17:26:21 +02:00
templates Let plugins register a navigation entry 2026-08-14 11:04:25 +00:00
.htaccess Rename basefolder 'rainloop' to 'snappymail' 2020-10-15 16:21:52 +02:00