add message about changing metadata settings

This commit is contained in:
Luke Pulverenti 2016-04-19 12:50:17 -04:00
parent f331873f91
commit e625f89788
2 changed files with 29 additions and 2 deletions

View File

@ -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 [
{

View File

@ -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."
}