plugins: frontend event 'appendMenuBar'

Massimo Melina committed Sep 14, 2024 at 10:17 UTC bd5330dd9e43f6539a2d86ab1bc9d82c23044a63
2 files changed +3
dev-plugins.md
+2
@@ -394,6 +394,7 @@ This is a list of available frontend-events, with respective object parameter an
394 - parameter `{ a: DirEntry, b: DirEntry }`
395 - output `number | undefined`
396 - All of the following have no parameters and you are supposed to output `Html` that will be displayed in the described place:
397 +- `appendMenuBar` inside menu-bar, at the end
398 - `afterMenuBar` between menu-bar and breadcrumbs
399 - `afterList` at the end of the files list
400 - `footer` at the bottom of the screen, even after the clipboard-bar (when visible)
@@ -650,6 +651,7 @@ If you want to override a text regardless of the language, use the special langu
651 - frontend event: sortCompare
652 - HFS.userBelongsTo
653 - HFS.DirEntry
654 + - frontend event: appendMenuBar
655 - 8.891 (v0.53.0)
656 - api.openDb
657 - frontend event: menuZip
frontend/src/menu.ts
+1
@@ -118,6 +118,7 @@ export function MenuPanel() {
118 }
119 }
120 })),
121 + h(CustomCode, { name: 'appendMenuBar' }),
122 ),
123 remoteSearch && h('div', { id: 'searched' },
124 (stopSearch ? t`Searching` : t`Searched`) + ': ' + remoteSearch + prefix(' (', searchManuallyInterrupted && t`interrupted`, ')')),