mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix unreleased status missing in metadata editor
This commit is contained in:
parent
f6bc10206e
commit
f882e8c5bb
1 changed files with 5 additions and 4 deletions
|
@ -22,6 +22,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';
|
||||
|
||||
let currentContext;
|
||||
let metadataEditorInfo;
|
||||
|
@ -886,10 +887,10 @@ function populateRatings(allParentalRatings, select, currentValue) {
|
|||
|
||||
function populateStatus(select) {
|
||||
let html = '';
|
||||
|
||||
html += "<option value=''></option>";
|
||||
html += "<option value='Continuing'>" + globalize.translate('Continuing') + '</option>';
|
||||
html += "<option value='Ended'>" + globalize.translate('Ended') + '</option>';
|
||||
html += '<option value=""></option>';
|
||||
html += `<option value="${SeriesStatus.Continuing}">${escapeHtml(globalize.translate('Continuing'))}</option>`;
|
||||
html += `<option value="${SeriesStatus.Ended}">${escapeHtml(globalize.translate('Ended'))}</option>`;
|
||||
html += `<option value="${SeriesStatus.Unreleased}">${escapeHtml(globalize.translate('Unreleased'))}</option>`;
|
||||
select.innerHTML = html;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue