1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Apply PR suggestions

This commit is contained in:
Nitzan Savion 2024-03-13 01:24:33 +02:00
parent f775f3cf22
commit 0663c0731f
3 changed files with 12 additions and 16 deletions

View file

@ -11,11 +11,14 @@ import ServerConnections from './ServerConnections';
import toast from './toast/toast';
import * as userSettings from '../scripts/settings/userSettings';
function getDeleteCommandName(type) {
function getDeleteLabel(type) {
switch (type) {
case 'Series':
return globalize.translate('DeleteSeries');
case 'Episode':
return globalize.translate('DeleteEpisode');
case 'Playlist':
case 'BoxSet':
return globalize.translate('Delete');
@ -175,7 +178,7 @@ export function getCommands(options) {
if (item.CanDelete && options.deleteItem !== false) {
commands.push({
name: getDeleteCommandName(item.Type),
name: getDeleteLabel(item.Type),
id: 'delete',
icon: 'delete'
});