mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add more notifications
This commit is contained in:
parent
7751d4f2a0
commit
b94fa3f72c
3 changed files with 30 additions and 10 deletions
|
@ -28,14 +28,28 @@
|
|||
<input type="checkbox" data-mini="true" id="chkFailedTasks" />
|
||||
<label for="chkFailedTasks">${OptionNotifyOnFailedTasks}</label>
|
||||
|
||||
<input type="checkbox" data-mini="true" id="chkServerRestartRequired" />
|
||||
<label for="chkServerRestartRequired">${OptionNotifyOnServerRestartRequired}</label>
|
||||
|
||||
<input type="checkbox" data-mini="true" id="chkUpdates" />
|
||||
<label for="chkUpdates">${OptionNotifyOnUpdates}</label>
|
||||
|
||||
<input type="checkbox" data-mini="true" id="chkPlayback" />
|
||||
<label for="chkPlayback">${OptionNotifyOnPlayback}</label>
|
||||
|
||||
<div class="fieldDescription">${SendNotificationHelp}</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<label>${HeaderEnableNotificationForPlayback}</label>
|
||||
<div data-role="controlgroup">
|
||||
<input type="checkbox" data-mini="true" id="chkVideoPlayback" />
|
||||
<label for="chkVideoPlayback">${OptionNotifyOnVideoPlayback}</label>
|
||||
|
||||
<input type="checkbox" data-mini="true" id="chkAudioPlayback" />
|
||||
<label for="chkAudioPlayback">${OptionNotifyOnAudioPlayback}</label>
|
||||
|
||||
<input type="checkbox" data-mini="true" id="chkGamePlayback" />
|
||||
<label for="chkGamePlayback">${OptionNotifyOnGamePlayback}</label>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<br />
|
||||
|
|
|
@ -34,11 +34,7 @@
|
|||
var users = response1[0];
|
||||
var config = response2[0];
|
||||
|
||||
var showManualForm = config.ManualLoginClients.filter(function (i) {
|
||||
|
||||
return i == "Mobile";
|
||||
|
||||
}).length || !users.length;
|
||||
var showManualForm = config.RequireManualLoginForMobileApps || !users.length;
|
||||
|
||||
if (showManualForm) {
|
||||
|
||||
|
|
|
@ -9,7 +9,12 @@
|
|||
$('#chkNewLibraryContent', page).checked(notificationOptions.SendOnNewLibraryContent).checkboxradio('refresh');
|
||||
$('#chkFailedTasks', page).checked(notificationOptions.SendOnFailedTasks).checkboxradio('refresh');
|
||||
$('#chkUpdates', page).checked(notificationOptions.SendOnUpdates).checkboxradio('refresh');
|
||||
$('#chkPlayback', page).checked(notificationOptions.SendOnPlayback).checkboxradio('refresh');
|
||||
|
||||
$('#chkServerRestartRequired', page).checked(notificationOptions.SendOnServerRestartRequired).checkboxradio('refresh');
|
||||
|
||||
$('#chkVideoPlayback', page).checked(notificationOptions.SendOnVideoPlayback).checkboxradio('refresh');
|
||||
$('#chkAudioPlayback', page).checked(notificationOptions.SendOnAudioPlayback).checkboxradio('refresh');
|
||||
$('#chkGamePlayback', page).checked(notificationOptions.SendOnGamePlayback).checkboxradio('refresh');
|
||||
|
||||
});
|
||||
}
|
||||
|
@ -23,7 +28,12 @@
|
|||
notificationOptions.SendOnNewLibraryContent = $('#chkNewLibraryContent', page).checked();
|
||||
notificationOptions.SendOnFailedTasks = $('#chkFailedTasks', page).checked();
|
||||
notificationOptions.SendOnUpdates = $('#chkUpdates', page).checked();
|
||||
notificationOptions.SendOnPlayback = $('#chkPlayback', page).checked();
|
||||
|
||||
notificationOptions.SendOnServerRestartRequired = $('#chkServerRestartRequired', page).checked();
|
||||
|
||||
notificationOptions.SendOnVideoPlayback = $('#chkVideoPlayback', page).checked();
|
||||
notificationOptions.SendOnAudioPlayback = $('#chkAudioPlayback', page).checked();
|
||||
notificationOptions.SendOnGamePlayback = $('#chkGamePlayback', page).checked();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue