mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
feat(ui): add emby user badge to the user list and fix local user badge
add emby user badge to the user list and fix local user badge which was previously not showing
This commit is contained in:
@@ -636,17 +636,23 @@ const UserList: React.FC = () => {
|
||||
<Badge badgeType="warning">
|
||||
{intl.formatMessage(messages.plexuser)}
|
||||
</Badge>
|
||||
) : (
|
||||
) : user.userType === UserType.LOCAL ? (
|
||||
<Badge badgeType="default">
|
||||
{intl.formatMessage(messages.localuser)}
|
||||
</Badge>
|
||||
) : process.env.JELLYFIN_TYPE == 'emby' ? (
|
||||
<Badge badgeType="success">
|
||||
{intl.formatMessage(messages.mediaServerUser, {
|
||||
mediaServerName:
|
||||
settings.currentSettings.mediaServerType ===
|
||||
MediaServerType.PLEX
|
||||
? 'Plex'
|
||||
: 'Jellyfin',
|
||||
mediaServerName: 'Emby',
|
||||
})}
|
||||
</Badge>
|
||||
)}
|
||||
) : user.userType === UserType.JELLYFIN ? (
|
||||
<Badge badgeType="default">
|
||||
{intl.formatMessage(messages.mediaServerUser, {
|
||||
mediaServerName: 'Jellyfin',
|
||||
})}
|
||||
</Badge>
|
||||
) : null}
|
||||
</Table.TD>
|
||||
<Table.TD>
|
||||
{user.id === 1
|
||||
|
||||
Reference in New Issue
Block a user