Skip to content

Commit

Permalink
feat(ui): add emby user badge to the user list and fix local user badge
Browse files Browse the repository at this point in the history
add emby user badge to the user list and fix local user badge which was previously not showing
  • Loading branch information
Fallenbagel committed May 26, 2022
1 parent 18d8d96 commit 410b536
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/components/UserList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 410b536

Please sign in to comment.