diff options
author | Simon Rettberg | 2020-01-10 15:30:39 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-01-10 15:30:39 +0100 |
commit | 96579d6d8d78152f5721f1c12bdcef0a61049126 (patch) | |
tree | a7db105850f08348f47d16e61c53db5ebedbee52 /modules-available/rebootcontrol/templates/status-wol.html | |
parent | [taskmanager.js] Support only showing task log on TASK_ERROR (diff) | |
download | slx-admin-96579d6d8d78152f5721f1c12bdcef0a61049126.tar.gz slx-admin-96579d6d8d78152f5721f1c12bdcef0a61049126.tar.xz slx-admin-96579d6d8d78152f5721f1c12bdcef0a61049126.zip |
[rebootcontrol] Make use of conditionally showing error log
Diffstat (limited to 'modules-available/rebootcontrol/templates/status-wol.html')
-rw-r--r-- | modules-available/rebootcontrol/templates/status-wol.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules-available/rebootcontrol/templates/status-wol.html b/modules-available/rebootcontrol/templates/status-wol.html index 0e91e8d8..a47b321a 100644 --- a/modules-available/rebootcontrol/templates/status-wol.html +++ b/modules-available/rebootcontrol/templates/status-wol.html @@ -4,7 +4,7 @@ <div class="clearfix slx-space"></div> {{#tasks}} -<div data-tm-id="{{.}}" data-tm-callback="wolCallback">{{lang_aWolJob}}</div> +<div data-tm-id="{{.}}" data-tm-callback="wolCallback" data-tm-log="messages" data-tm-log-fail-only="true">{{lang_aWolJob}}</div> {{/tasks}} {{^tasks}} <div class="alert alert-warning"> @@ -47,6 +47,8 @@ <script><!-- function wolCallback(task) { - stillActive = 25; + if (task.statusCode === 'TASK_WAITING' || task.statusCode === 'TASK_PROCESSING') { + stillActive = 25; + } } //--></script>
\ No newline at end of file |