Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions infrastructure/control-panel/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,4 @@
/>
{/if}
</TableCard>

<!-- Start Monitoring Button -->
<div class="mt-8 flex justify-center">
<button
onclick={goToMonitoring}
disabled={selectedEVaults.length === 0 && selectedPlatforms.length === 0}
class="bg-primary hover:bg-primary-600 rounded-full px-8 py-3 text-lg font-semibold text-white transition-colors disabled:cursor-not-allowed disabled:opacity-50"
>
Start Monitoring
</button>
</div>
</section>
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
selectedPlatforms = JSON.parse(platformsData);
}

// Check if any items are selected, if not redirect back to home
if (
(!selectedEVaults || selectedEVaults.length === 0) &&
(!selectedPlatforms || selectedPlatforms.length === 0)
) {
goto('/');
return;
}

// Create nodes from selected items
const newNodes: Node[] = [];
let nodeId = 1;
Expand Down
Loading