Settings to disable the bot and the advances channel configuration

This commit is contained in:
John Livingston
2023-09-06 15:56:55 +02:00
parent 5373fb1570
commit d410d4e08e
5 changed files with 63 additions and 0 deletions

View File

@ -10,6 +10,9 @@ import { vivifyConfigurationChannel } from './logic/channel'
async function registerConfiguration (clientOptions: RegisterClientOptions): Promise<void> {
const { peertubeHelpers, registerClientRoute, registerHook } = clientOptions
const settings = await peertubeHelpers.getSettings()
if (settings['disable-configuration']) { return }
registerClientRoute({
route: 'livechat/configuration',
onMount: async ({ rootEl }) => {