From 6d530d90280c929c7e8b185eb379e98c2d0a8ef9 Mon Sep 17 00:00:00 2001 From: Fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Date: Wed, 20 Apr 2022 04:52:39 +0500 Subject: [PATCH] fix: fix usertype from local user to mediaServerType Fixes usertype from appearing as local user even if the mediaServerType is jellyfin --- src/components/UserList/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/UserList/index.tsx b/src/components/UserList/index.tsx index 25785e97..7a42739f 100644 --- a/src/components/UserList/index.tsx +++ b/src/components/UserList/index.tsx @@ -58,6 +58,7 @@ const messages = defineMessages({ deleteconfirm: 'Are you sure you want to delete this user? All of their request data will be permanently removed.', localuser: 'Local User', + mediaServerUser: '{mediaServerName} User', createlocaluser: 'Create Local User', creating: 'Creating…', create: 'Create', @@ -636,7 +637,13 @@ const UserList: React.FC = () => { ) : ( - {intl.formatMessage(messages.localuser)} + {intl.formatMessage(messages.mediaServerUser, { + mediaServerName: + settings.currentSettings.mediaServerType === + MediaServerType.PLEX + ? 'Plex' + : 'Jellyfin', + })} )}