Notification watch settings - add button to make watch use defaults (empties the settings)

proxies-json-data
dgtlmoon 2 years ago
parent e154a3cb7a
commit b046d6ef32

@ -30,4 +30,10 @@ $(document).ready(function() {
});
toggle();
$('#notification-setting-reset-to-default').click(function (e) {
$('#notification_title').val('');
$('#notification_body').val('');
$('#notification_format').val('System default');
});
});

@ -26,6 +26,7 @@
<a href="{{url_for('notification_logs')}}" class="pure-button button-secondary button-xsmall" style="font-size: 70%">Notification debug logs</a>
</div>
<div id="notification-customisation" class="pure-control-group">
<a href="#notifications" id="notification-setting-reset-to-default" class="pure-button button-xsmall" style="float: right; background-color: #5f42dd; border-radius: 4px; font-size: 70%; color: #fff">Use defaults</a>
<div class="pure-control-group">
{{ render_field(form.notification_title, class="m-d notification-title", placeholder=settings_application['notification_title']) }}
<span class="pure-form-message-inline">Title for all notifications</span>

Loading…
Cancel
Save