🤬
  • Notification - Reset defaults button should be on edit page only

  • Loading...
  • dgtlmoon committed 2 years ago
    b6009ae9
    1 parent b046d6ef
  • ■ ■ ■ ■ ■
    changedetectionio/static/js/watch-settings.js
    skipped 33 lines
    34 34   $('#notification_title').val('');
    35 35   $('#notification_body').val('');
    36 36   $('#notification_format').val('System default');
    37  - 
     37 + $('#notification_urls').val('');
     38 + e.preventDefault();
    38 39   });
    39 40  });
    40 41   
  • ■ ■ ■ ■ ■
    changedetectionio/templates/_common_fields.jinja
    skipped 25 lines
    26 26   <a href="{{url_for('notification_logs')}}" class="pure-button button-secondary button-xsmall" style="font-size: 70%">Notification debug logs</a>
    27 27   </div>
    28 28   <div id="notification-customisation" class="pure-control-group">
    29  - <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>
    30 29   <div class="pure-control-group">
    31 30   {{ render_field(form.notification_title, class="m-d notification-title", placeholder=settings_application['notification_title']) }}
    32 31   <span class="pure-form-message-inline">Title for all notifications</span>
    skipped 73 lines
  • ■ ■ ■ ■ ■ ■
    changedetectionio/templates/edit.html
    skipped 145 lines
    146 146   There are <a href="{{ url_for('settings_page')}}#notifications">system-wide notification URLs enabled</a>, this form will override notification settings for this watch only &dash; an empty Notification URL list here will still send notifications.
    147 147   </div>
    148 148   {% endif %}
     149 + <a href="#notifications" id="notification-setting-reset-to-default" class="pure-button button-xsmall" style="right: 20px; top: 20px; position: absolute; background-color: #5f42dd; border-radius: 4px; font-size: 70%; color: #fff">Use system defaults</a>
     150 + 
    149 151   {{ render_common_settings_form(form, emailprefix, settings_application) }}
    150 152   </div>
    151 153   </fieldset>
    skipped 180 lines
Please wait...
Page is in error, reload to recover