mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5990 from scampower3/allow-season-episode-original-title-edit
This commit is contained in:
commit
576dcd85a1
1 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,8 @@ import ServerConnections from '../ServerConnections';
|
|||
import toast from '../toast/toast';
|
||||
import { appRouter } from '../router/appRouter';
|
||||
import template from './metadataEditor.template.html';
|
||||
import { SeriesStatus } from '@jellyfin/sdk/lib/generated-client';
|
||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||
import { SeriesStatus } from '@jellyfin/sdk/lib/generated-client/models/series-status';
|
||||
|
||||
let currentContext;
|
||||
let metadataEditorInfo;
|
||||
|
@ -541,7 +542,7 @@ function setFieldVisibilities(context, item) {
|
|||
hideElement('#fldPath', context);
|
||||
}
|
||||
|
||||
if (item.Type === 'Series' || item.Type === 'Movie' || item.Type === 'Trailer' || item.Type === 'Person') {
|
||||
if ([BaseItemKind.Series, BaseItemKind.Season, BaseItemKind.Episode, BaseItemKind.Movie, BaseItemKind.Trailer, BaseItemKind.Person].includes(item.Type)) {
|
||||
showElement('#fldOriginalName', context);
|
||||
} else {
|
||||
hideElement('#fldOriginalName', context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue