diff --git a/static/hub.css b/static/hub.css index 9f8d2db..bfbc59d 100644 --- a/static/hub.css +++ b/static/hub.css @@ -302,6 +302,16 @@ button, .btn { } .btn:hover, button:hover { filter: brightness(1.06); } .btn-danger { background: #9f1239; color: #fff; } +.btn-close-disabled, +.btn-close-disabled:hover, +.btn.btn-close-disabled:disabled { + background: #3a3f4b; + color: #8b93a7; + border: 1px solid #4a5160; + cursor: not-allowed; + filter: none; + opacity: 1; +} .btn-sm { padding: 3px 8px; font-size: 0.75rem; diff --git a/static/hub.js b/static/hub.js index f8230ab..55bcde9 100644 --- a/static/hub.js +++ b/static/hub.js @@ -85,11 +85,19 @@ } function closeActionButtons(brief, instanceId, online) { - if (!online) return ""; const list = (brief || []).filter(function (p) { return !!(p && p.inst_id); }); - if (!list.length) return ""; + if (!online) { + return ( + '' + ); + } + if (!list.length) { + return ( + '' + ); + } return list .slice(0, 8) .map(function (p) { diff --git a/templates/dashboard.html b/templates/dashboard.html index f89e187..f1e1c2c 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -15,6 +15,6 @@
{% endblock %} {% block scripts %} - + {% endblock %}