mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
feat: add support for sub routes under /my-account (#6218)
* feat: add support for sub routes under /my-account closes #6217 * feat(plugins/client-routes): page titles Add support for adding custom page titles in client routes. * fix(client/PluginPages): reload component upon URL change * Styling * docs(plugins): update registerClientRoute --------- Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
@@ -8,4 +8,5 @@ export type PluginClientScope =
|
||||
'video-edit' |
|
||||
'admin-plugin' |
|
||||
'my-library' |
|
||||
'video-channel'
|
||||
'video-channel' |
|
||||
'my-account'
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
export interface RegisterClientRouteOptions {
|
||||
route: string
|
||||
|
||||
// Plugin route can be injected in a sub router, like the my-account page
|
||||
parentRoute?: '/' | '/my-account'
|
||||
// If parent route has a sub menu, specify the new entry sub menu settings
|
||||
menuItem?: {
|
||||
label?: string
|
||||
}
|
||||
|
||||
title?: string
|
||||
|
||||
onMount (options: {
|
||||
rootEl: HTMLElement
|
||||
}): void
|
||||
|
||||
Reference in New Issue
Block a user