Update the "Forbidden usernames" UI (#259)

* Add new component for adding/removing forbidden name strings. Closes https://github.com/owncast/owncast/issues/1230

* make editing string styling shareable and consistent with tag editor

* Prettified Code!

Co-authored-by: gingervitis <omqmail@gmail.com>
Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
This commit is contained in:
Gabe Kangas
2021-07-25 22:12:50 -07:00
committed by GitHub
parent c7937c2311
commit 6ce927a854
6 changed files with 152 additions and 24 deletions

View File

@@ -185,9 +185,9 @@ export const FIELD_PROPS_DISABLE_CHAT = {
export const TEXTFIELD_PROPS_CHAT_FORBIDDEN_USERNAMES = {
apiPath: API_CHAT_FORBIDDEN_USERNAMES,
placeholder: 'admin,god,owncast,stewiegriffin',
placeholder: 'username',
label: 'Forbidden usernames',
tip: 'A comma separated list of chat usernames you disallow.',
tip: 'A list of words in chat usernames you disallow.',
};
export const VIDEO_VARIANT_SETTING_DEFAULTS = {