Add admin field for setting offline message. Closes #1901

This commit is contained in:
Gabe Kangas
2022-08-16 21:44:37 -07:00
parent 9749cc96c3
commit a521ba21d8
5 changed files with 22 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ export const API_RTMP_PORT = '/rtmpserverport';
export const API_S3_INFO = '/s3';
export const API_SERVER_SUMMARY = '/serversummary';
export const API_SERVER_WELCOME_MESSAGE = '/welcomemessage';
export const API_SERVER_OFFLINE_MESSAGE = '/offlinemessage';
export const API_SERVER_NAME = '/name';
export const API_SOCIAL_HANDLES = '/socialhandles';
export const API_STREAM_KEY = '/key';
@@ -88,6 +89,14 @@ export const TEXTFIELD_PROPS_SERVER_SUMMARY = {
label: 'About',
tip: 'A brief blurb about you, your server, or what your stream is about.',
};
export const TEXTFIELD_PROPS_SERVER_OFFLINE_MESSAGE = {
apiPath: API_SERVER_OFFLINE_MESSAGE,
configPath: 'instanceDetails',
maxLength: 2500,
placeholder: 'An optional message you can leave people when your stream is not live.',
label: 'Offline Message',
tip: 'An optional message you can leave people when your stream is not live.',
};
export const TEXTFIELD_PROPS_SERVER_WELCOME_MESSAGE = {
apiPath: API_SERVER_WELCOME_MESSAGE,
configPath: 'instanceDetails',

View File

@@ -21,6 +21,7 @@ export const initialServerConfigState: ConfigDetails = {
tags: [],
title: '',
welcomeMessage: '',
offlineMessage: '',
},
ffmpegPath: '',
rtmpServerPort: '',