fix: fix usertype from local user to mediaServerType

Fixes usertype from appearing as local user even if the mediaServerType is jellyfin
This commit is contained in:
Fallenbagel
2022-04-20 04:52:39 +05:00
parent f12237565f
commit 6d530d9028

View File

@@ -58,6 +58,7 @@ const messages = defineMessages({
deleteconfirm: deleteconfirm:
'Are you sure you want to delete this user? All of their request data will be permanently removed.', 'Are you sure you want to delete this user? All of their request data will be permanently removed.',
localuser: 'Local User', localuser: 'Local User',
mediaServerUser: '{mediaServerName} User',
createlocaluser: 'Create Local User', createlocaluser: 'Create Local User',
creating: 'Creating…', creating: 'Creating…',
create: 'Create', create: 'Create',
@@ -636,7 +637,13 @@ const UserList: React.FC = () => {
</Badge> </Badge>
) : ( ) : (
<Badge badgeType="default"> <Badge badgeType="default">
{intl.formatMessage(messages.localuser)} {intl.formatMessage(messages.mediaServerUser, {
mediaServerName:
settings.currentSettings.mediaServerType ===
MediaServerType.PLEX
? 'Plex'
: 'Jellyfin',
})}
</Badge> </Badge>
)} )}
</Table.TD> </Table.TD>