expose peertubeHelpers to TranslationDirective

This commit is contained in:
Mehdi Benadel
2024-05-24 14:25:08 +02:00
parent d95312aa11
commit 67abb5279f
5 changed files with 66 additions and 10 deletions

View File

@ -6,6 +6,7 @@
import type { RegisterClientOptions } from '@peertube/peertube-types/client'
import { html, render } from 'lit'
import './elements' // Import all needed elements.
import { registerClientOptionsSubject$ } from '../lib/contexts/peertube'
/**
* Registers stuff related to the user's configuration pages.
@ -17,6 +18,8 @@ async function registerConfiguration (clientOptions: RegisterClientOptions): Pro
const settings = await peertubeHelpers.getSettings()
if (settings['disable-channel-configuration']) { return }
registerClientOptionsSubject$.next(clientOptions)
registerClientRoute({
route: 'livechat/configuration',
onMount: async ({ rootEl }) => {