summaryrefslogtreecommitdiffstats
path: root/modules-available/sysconfig/templates/list-modules.html
diff options
context:
space:
mode:
authorSimon Rettberg2020-11-17 13:07:09 +0100
committerSimon Rettberg2020-11-17 13:07:09 +0100
commit9c2c64312771673012b3143a073bb6c227f4745f (patch)
treea9ac2e401217be2fecc0328e41bbf26eab7413f6 /modules-available/sysconfig/templates/list-modules.html
parent[style/default.css] Fix margin/padding of slx-ellipsis hack (diff)
downloadslx-admin-9c2c64312771673012b3143a073bb6c227f4745f.tar.gz
slx-admin-9c2c64312771673012b3143a073bb6c227f4745f.tar.xz
slx-admin-9c2c64312771673012b3143a073bb6c227f4745f.zip
[sysconfig] Dynamically update warnings button
As we use AJAX to query build state for configs that don't have state === 'OK', the warnings list might be out of date. Hide the warnings button for all modules that aren't up to date, and dynamically load their warnings. The warnings button will be shown when the module finished building, assuming any warnings were generated.
Diffstat (limited to 'modules-available/sysconfig/templates/list-modules.html')
-rw-r--r--modules-available/sysconfig/templates/list-modules.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules-available/sysconfig/templates/list-modules.html b/modules-available/sysconfig/templates/list-modules.html
index b8783c59..9284bb24 100644
--- a/modules-available/sysconfig/templates/list-modules.html
+++ b/modules-available/sysconfig/templates/list-modules.html
@@ -10,9 +10,9 @@
<input type="hidden" name="action" value="module">
<table id="modtable" class="slx-table table-hover" style="width:100%">
{{#modules}}
- <tr>
+ <tr data-id="{{id}}" class="modrow">
<td class="badge text-nowrap">{{moduleType}}</td>
- <td data-id="{{id}}" class="modrow slx-pointer" width="100%" title="{{lang_lastEdited}} {{dateline_s}}">
+ <td class="title slx-pointer" width="100%" title="{{lang_lastEdited}} {{dateline_s}}">
<table class="slx-ellipsis"><tr><td>{{title}}</td></tr></table>
</td>
<td class="text-nowrap">
@@ -27,10 +27,10 @@
<td class="text-nowrap">
<button
{{#needRebuild}}
- class="refmod btn btn-primary btn-xs"
+ class="btn-rebuild btn btn-primary btn-xs"
{{/needRebuild}}
{{^needRebuild}}
- class="refmod btn btn-default btn-xs"
+ class="btn-rebuild btn btn-default btn-xs"
{{/needRebuild}}
name="rebuild" value="{{id}}" title="{{lang_rebuild}}" {{perms.module.edit.disabled}}>
<span class="glyphicon glyphicon-refresh"></span>