mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add message about changing metadata settings
This commit is contained in:
parent
f331873f91
commit
e625f89788
@ -27,13 +27,38 @@
|
||||
config.MetadataCountryCode = $('#selectCountry', form).val();
|
||||
config.DownloadImagesInAdvance = $('#chkDownloadImagesInAdvance', form).checked();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
|
||||
ApiClient.updateServerConfiguration(config).then(function() {
|
||||
Dashboard.processServerConfigurationUpdateResult();
|
||||
|
||||
showConfirmMessage(config);
|
||||
});
|
||||
});
|
||||
|
||||
// Disable default form submission
|
||||
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() {
|
||||
return [
|
||||
{
|
||||
|
@ -2337,5 +2337,7 @@
|
||||
"GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address.",
|
||||
"MarkPlayed": "Mark played",
|
||||
"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…
Reference in New Issue
Block a user