mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-07 14:15:34 +00:00
Fix js to enable "pause" button when a check is paused but started
This commit is contained in:
parent
374f034bf9
commit
0a4412a493
2 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,7 @@ $(function () {
|
||||||
$("#current-status-icon").attr("class", "status ic-" + data.status);
|
$("#current-status-icon").attr("class", "status ic-" + data.status);
|
||||||
$("#current-status-text").html(data.status_text);
|
$("#current-status-text").html(data.status_text);
|
||||||
|
|
||||||
$('#pause-btn').prop('disabled', data.status == "paused");
|
$('#pause-btn').prop('disabled', data.status == "paused" && !data.started);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.started != lastStarted) {
|
if (data.started != lastStarted) {
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
{% if rw %}
|
{% if rw %}
|
||||||
<a id="resume-btn" href="#">(Resume Now)</a>
|
<a id="resume-btn" href="#">(Resume Now)</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% elif status == "paused" and check.last_start %}
|
||||||
|
This check is ready for pings.
|
||||||
{% elif status == "paused" %}
|
{% elif status == "paused" %}
|
||||||
This check is paused.
|
This check is paused.
|
||||||
{% elif status == "new" and check.n_pings %}
|
{% elif status == "new" and check.n_pings %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue