feat(ui): add emby as a mediaServerType to the import user button

Add emby as a mediaServerType to the import user button and replace any reference to Jellyfin with
mediaServerName
This commit is contained in:
Fallenbagel
2022-05-27 05:35:00 +05:00
parent 410b536c94
commit 6a6bfe0c68
2 changed files with 38 additions and 17 deletions

View File

@@ -503,13 +503,18 @@ const UserList: React.FC = () => {
>
<InboxInIcon />
<span>
{intl.formatMessage(messages.importfromplex, {
mediaServerName:
settings.currentSettings.mediaServerType ===
{process.env.JELLYFIN_TYPE == 'emby'
? intl.formatMessage(messages.importfromplex, {
mediaServerName: 'Emby',
})
: settings.currentSettings.mediaServerType ===
MediaServerType.PLEX
? 'Plex'
: 'Jellyfin',
})}
? intl.formatMessage(messages.importfromplex, {
mediaServerName: 'Plex',
})
: intl.formatMessage(messages.importfromplex, {
mediaServerName: 'Jellyfin',
})}
</span>
</Button>
</div>