mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add message about changing metadata settings
This commit is contained in:
parent
f331873f91
commit
e625f89788
2 changed files with 29 additions and 2 deletions
|
@ -27,13 +27,38 @@
|
||||||
config.MetadataCountryCode = $('#selectCountry', form).val();
|
config.MetadataCountryCode = $('#selectCountry', form).val();
|
||||||
config.DownloadImagesInAdvance = $('#chkDownloadImagesInAdvance', form).checked();
|
config.DownloadImagesInAdvance = $('#chkDownloadImagesInAdvance', form).checked();
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateServerConfiguration(config).then(function() {
|
||||||
|
Dashboard.processServerConfigurationUpdateResult();
|
||||||
|
|
||||||
|
showConfirmMessage(config);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Disable default form submission
|
// Disable default form submission
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showConfirmMessage(config) {
|
||||||
|
|
||||||
|
var msg = [];
|
||||||
|
|
||||||
|
msg.push(Globalize.translate('MetadataSettingChangeHelp'));
|
||||||
|
|
||||||
|
if (config.DownloadImagesInAdvance) {
|
||||||
|
msg.push(Globalize.translate('DownloadImagesInAdvanceWarning'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!msg.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
require(['alert'], function (alert) {
|
||||||
|
alert({
|
||||||
|
text: msg.join('<br/><br/>')
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function getTabs() {
|
function getTabs() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|
|
@ -2337,5 +2337,7 @@
|
||||||
"GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address.",
|
"GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address.",
|
||||||
"MarkPlayed": "Mark played",
|
"MarkPlayed": "Mark played",
|
||||||
"MarkUnplayed": "Mark unplayed",
|
"MarkUnplayed": "Mark unplayed",
|
||||||
"Yesterday": "Yesterday"
|
"Yesterday": "Yesterday",
|
||||||
|
"DownloadImagesInAdvanceWarning": "Downloading all images in advance will result in longer library scan times.",
|
||||||
|
"MetadataSettingChangeHelp": "Changing metadata settings will affect new content that is added going forward. To refresh existing content, open the detail screen and click the refresh button, or perform bulk refreshes using the metadata manager."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue