feat: firmware upload on the cluster view

This commit is contained in:
2025-10-16 21:26:16 +02:00
parent f3a61131db
commit 478d23b805
8 changed files with 1446 additions and 13 deletions

View File

@@ -91,7 +91,7 @@ class DrawerComponent {
});
}
openDrawer(title, contentCallback, errorCallback, onCloseCallback) {
openDrawer(title, contentCallback, errorCallback, onCloseCallback, hideTerminalButton = false) {
this.ensureDrawer();
this.onCloseCallback = onCloseCallback;
@@ -101,6 +101,12 @@ class DrawerComponent {
titleEl.textContent = title;
}
// Show/hide terminal button based on parameter
const terminalBtn = this.detailsDrawer.querySelector('.drawer-terminal-btn');
if (terminalBtn) {
terminalBtn.style.display = hideTerminalButton ? 'none' : 'block';
}
// Clear previous component if any
if (this.activeDrawerComponent && typeof this.activeDrawerComponent.unmount === 'function') {
try {