mirror of
https://github.com/jellyfin/jellyfin-plugin-bookshelf.git
synced 2024-11-23 13:49:45 +00:00
update email config
This commit is contained in:
parent
b3e0ba18d4
commit
0b3e3473e7
@ -87,19 +87,26 @@
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var onError = function () {
|
||||
require(['alert'], function (alert) {
|
||||
alert("There was an error sending the test email. Please check your email settings and try again.");
|
||||
});
|
||||
};
|
||||
|
||||
ApiClient.getPluginConfiguration(pluginId).then(function (config) {
|
||||
|
||||
config.Options.filter(function (c) {
|
||||
config.Options.map(function (c) {
|
||||
|
||||
ApiClient.ajax({
|
||||
type: "POST",
|
||||
url: ApiClient.getUrl("Notification/SMTP/Test/" + c.MediaBrowserUserId)
|
||||
|
||||
}).then(function () {
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
}).catch(onError);
|
||||
});
|
||||
});
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
}, onError);
|
||||
});
|
||||
|
||||
function loadUserConfig(page, userId) {
|
||||
|
Loading…
Reference in New Issue
Block a user