mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add "AllowedTags" option to parental controls
This commit is contained in:
parent
2956de9095
commit
adb22abdc2
4 changed files with 126 additions and 48 deletions
|
@ -2,10 +2,11 @@ import React, { FunctionComponent } from 'react';
|
|||
import IconButtonElement from '../../../elements/IconButtonElement';
|
||||
|
||||
type IProps = {
|
||||
tag?: string;
|
||||
tag?: string,
|
||||
tagType?: string;
|
||||
};
|
||||
|
||||
const BlockedTagList: FunctionComponent<IProps> = ({ tag }: IProps) => {
|
||||
const TagList: FunctionComponent<IProps> = ({ tag, tagType }: IProps) => {
|
||||
return (
|
||||
<div className='paperList'>
|
||||
<div className='listItem'>
|
||||
|
@ -16,7 +17,7 @@ const BlockedTagList: FunctionComponent<IProps> = ({ tag }: IProps) => {
|
|||
</div>
|
||||
<IconButtonElement
|
||||
is='paper-icon-button-light'
|
||||
className='blockedTag btnDeleteTag listItemButton'
|
||||
className={`${tagType} btnDeleteTag listItemButton`}
|
||||
title='Delete'
|
||||
icon='delete'
|
||||
dataTag={tag}
|
||||
|
@ -26,4 +27,4 @@ const BlockedTagList: FunctionComponent<IProps> = ({ tag }: IProps) => {
|
|||
);
|
||||
};
|
||||
|
||||
export default BlockedTagList;
|
||||
export default TagList;
|
Loading…
Add table
Add a link
Reference in a new issue