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.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 [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue