custom_components/bahmcloud_store/panel/panel.js aktualisiert

This commit is contained in:
2026-01-15 07:18:57 +00:00
parent 3eb6d24439
commit 638ac9a7ec

View File

@@ -236,10 +236,7 @@ class BahmcloudStorePanel extends HTMLElement {
.small { font-size: 12px; } .small { font-size: 12px; }
a { a { color: var(--bcs-accent); text-decoration: none; }
color: var(--bcs-accent);
text-decoration: none;
}
a:hover { text-decoration: underline; } a:hover { text-decoration: underline; }
</style> </style>
@@ -247,7 +244,7 @@ class BahmcloudStorePanel extends HTMLElement {
<div class="topbar"> <div class="topbar">
<div> <div>
<div class="title">Bahmcloud Store</div> <div class="title">Bahmcloud Store</div>
<div class="subtitle">BCS 0.3.0 — repository enrichment</div> <div class="subtitle" id="subtitle">BCS — loading…</div>
</div> </div>
<div class="actions"> <div class="actions">
@@ -281,6 +278,11 @@ class BahmcloudStorePanel extends HTMLElement {
const content = root.getElementById("content"); const content = root.getElementById("content");
const err = root.getElementById("error"); const err = root.getElementById("error");
// Subtitle version (no hardcoding)
const subtitle = root.getElementById("subtitle");
const v = this._data?.version ? String(this._data.version) : null;
subtitle.textContent = v ? `BCS ${v}` : "BCS — loading…";
for (const tab of root.querySelectorAll(".tab")) { for (const tab of root.querySelectorAll(".tab")) {
tab.classList.toggle("active", tab.getAttribute("data-view") === this._view); tab.classList.toggle("active", tab.getAttribute("data-view") === this._view);
} }