feat: add initial desktop view implementation

This commit is contained in:
2025-09-15 20:57:30 +02:00
parent 8476c76637
commit 6f1e194545
3 changed files with 177 additions and 6 deletions

View File

@@ -475,9 +475,14 @@ class NodeDetailsComponent extends Component {
uploadBtn.disabled = true;
uploadBtn.textContent = '⏳ Uploading...';
// Get the member IP from the card
// Get the member IP from the card if available, otherwise fallback to view model state
const memberCard = this.container.closest('.member-card');
const memberIp = memberCard.dataset.memberIp;
let memberIp = null;
if (memberCard && memberCard.dataset && memberCard.dataset.memberIp) {
memberIp = memberCard.dataset.memberIp;
} else if (this.viewModel && typeof this.viewModel.get === 'function') {
memberIp = this.viewModel.get('nodeIp');
}
if (!memberIp) {
throw new Error('Could not determine target node IP address');