mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Always show FFmpeg path in Transcoding page
Removed the 'hide' and 'required' settings from the html to always show the FFmpeg path to user and also allow user to remove a custom path and return to using whatever is available from system $PATH.
This commit is contained in:
parent
8f03439b7e
commit
ba2c777772
@ -91,10 +91,10 @@
|
|||||||
<div class="fieldDescription">${LabelTranscodingThreadCountHelp}</div>
|
<div class="fieldDescription">${LabelTranscodingThreadCountHelp}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="inputContainer fldEncoderPath hide">
|
<div class="inputContainer fldEncoderPath">
|
||||||
<div style="display: flex; align-items: center;">
|
<div style="display: flex; align-items: center;">
|
||||||
<div style="flex-grow:1;">
|
<div style="flex-grow:1;">
|
||||||
<input is="emby-input" class="txtEncoderPath" label="${LabelffmpegPath}" autocomplete="off" required />
|
<input is="emby-input" class="txtEncoderPath" label="${LabelffmpegPath}" autocomplete="off" />
|
||||||
</div>
|
</div>
|
||||||
<button type="button" is="paper-icon-button-light" id="btnSelectEncoderPath" class="emby-input-iconbutton"><i class="md-icon">search</i></button>
|
<button type="button" is="paper-icon-button-light" id="btnSelectEncoderPath" class="emby-input-iconbutton"><i class="md-icon">search</i></button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -90,8 +90,8 @@ define(["jQuery", "loading", "globalize", "dom"], function($, loading, globalize
|
|||||||
var page = this;
|
var page = this;
|
||||||
ApiClient.getNamedConfiguration("encoding").then(function(config) {
|
ApiClient.getNamedConfiguration("encoding").then(function(config) {
|
||||||
ApiClient.getSystemInfo().then(function(systemInfo) {
|
ApiClient.getSystemInfo().then(function(systemInfo) {
|
||||||
"External" == systemInfo.EncoderLocationType ? (page.querySelector(".fldEncoderPath").classList.add("hide"), page.querySelector(".txtEncoderPath").removeAttribute("required")) : (page.querySelector(".fldEncoderPath").classList.remove("hide"), page.querySelector(".txtEncoderPath").setAttribute("required", "required")), loadPage(page, config, systemInfo)
|
loadPage(page, config, systemInfo)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user