feat: firmware upload on the cluster view
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user