-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow editing of original title for Season and Episode items #5990
Allow editing of original title for Season and Episode items #5990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
@@ -541,7 +541,7 @@ function setFieldVisibilities(context, item) { | |||
hideElement('#fldPath', context); | |||
} | |||
|
|||
if (item.Type === 'Series' || item.Type === 'Movie' || item.Type === 'Trailer' || item.Type === 'Person') { | |||
if (item.Type === 'Series' || item.Type === 'Season' || item.Type === 'Episode' || item.Type === 'Movie' || item.Type === 'Trailer' || item.Type === 'Person') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should do something like:
if ([ 'Series', 'Season', 'Episode', ... ].includes(item.Type)) {
Bonus points if you also use the BaseItemKind
enum values instead of hardcoded strings. 😉
@@ -21,7 +21,7 @@ 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, SeriesStatus } from '@jellyfin/sdk/lib/generated-client'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ensure tree-shaking can happen during the build, we should use the full path for these imports @jellyfin/sdk/lib/generated-client/models/base-item-kind
(I think).
Quality Gate passedIssues Measures |
Cloudflare Pages deployment
|
Changes
Allows editing of original title for Season and Episode items.
Issues