mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Handle error messages
This commit is contained in:
parent
71f72f836c
commit
a2ba96ab82
@ -57,7 +57,7 @@ function showNewJoinGroupSelection (button, user, apiClient) {
|
||||
icon: "group",
|
||||
id: group.GroupId,
|
||||
selected: false,
|
||||
secondaryText: group.Partecipants.join(", ")
|
||||
secondaryText: group.Participants.join(", ")
|
||||
};
|
||||
});
|
||||
|
||||
@ -74,7 +74,7 @@ function showNewJoinGroupSelection (button, user, apiClient) {
|
||||
if (menuItems.length === 0) {
|
||||
if (inSession && policy.SyncplayAccess === "JoinGroups") {
|
||||
toast({
|
||||
text: globalize.translate('MessageSyncplayPermissionRequired')
|
||||
text: globalize.translate('MessageSyncplayCreateGroupDenied')
|
||||
});
|
||||
} else {
|
||||
toast({
|
||||
|
@ -274,7 +274,25 @@ class SyncplayManager {
|
||||
text: globalize.translate('MessageSyncplayGroupWait', cmd.Data)
|
||||
});
|
||||
break;
|
||||
case 'KeepAlive':
|
||||
case 'GroupNotJoined':
|
||||
toast({
|
||||
text: globalize.translate('MessageSyncplayGroupNotJoined', cmd.Data)
|
||||
});
|
||||
break;
|
||||
case 'CreateGroupDenied':
|
||||
toast({
|
||||
text: globalize.translate('MessageSyncplayCreateGroupDenied', cmd.Data)
|
||||
});
|
||||
break;
|
||||
case 'JoinGroupDenied':
|
||||
toast({
|
||||
text: globalize.translate('MessageSyncplayJoinGroupDenied', cmd.Data)
|
||||
});
|
||||
break;
|
||||
case 'LibraryAccessDenied':
|
||||
toast({
|
||||
text: globalize.translate('MessageSyncplayLibraryAccessDenied', cmd.Data)
|
||||
});
|
||||
break;
|
||||
default:
|
||||
console.error('processSyncplayGroupUpdate does not recognize: ' + cmd.Type);
|
||||
|
@ -1034,9 +1034,12 @@
|
||||
"MessageSyncplayUserJoined": "<b>{0}</b> joined group.",
|
||||
"MessageSyncplayUserLeft": "<b>{0}</b> left group.",
|
||||
"MessageSyncplayGroupWait": "<b>{0}</b> is buffering...",
|
||||
"MessageSyncplayNoGroupsAvailable": "No groups available.",
|
||||
"MessageSyncplayPermissionRequired": "Permission required to create a group.",
|
||||
"MessageSyncplayNoGroupsAvailable": "No groups available. Start playing something first.",
|
||||
"MessageSyncplayPlaybackPermissionRequired": "Playback permission required.",
|
||||
"MessageSyncplayGroupNotJoined": "Failed to join requested group.",
|
||||
"MessageSyncplayCreateGroupDenied": "Permission required to create a group.",
|
||||
"MessageSyncplayJoinGroupDenied": "Permission required to use Syncplay.",
|
||||
"MessageSyncplayLibraryAccessDenied": "Access to this content is restricted.",
|
||||
"Metadata": "Metadata",
|
||||
"MetadataManager": "Metadata Manager",
|
||||
"MetadataSettingChangeHelp": "Changing metadata settings will affect new content that is added going forward. To refresh existing content, open the detail screen and click the refresh button, or perform bulk refreshes using the metadata manager.",
|
||||
|
Loading…
Reference in New Issue
Block a user