File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
infrastructure/control-panel/src/routes Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 247247 />
248248 {/if }
249249 </TableCard >
250-
251- <!-- Start Monitoring Button -->
252- <div class =" mt-8 flex justify-center" >
253- <button
254- onclick ={goToMonitoring }
255- disabled ={selectedEVaults .length === 0 && selectedPlatforms .length === 0 }
256- 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"
257- >
258- Start Monitoring
259- </button >
260- </div >
261250</section >
Original file line number Diff line number Diff line change 4242 selectedPlatforms = JSON .parse (platformsData );
4343 }
4444
45+ // Check if any items are selected, if not redirect back to home
46+ if (
47+ (! selectedEVaults || selectedEVaults .length === 0 ) &&
48+ (! selectedPlatforms || selectedPlatforms .length === 0 )
49+ ) {
50+ goto (' /' );
51+ return ;
52+ }
53+
4554 // Create nodes from selected items
4655 const newNodes: Node [] = [];
4756 let nodeId = 1 ;
You can’t perform that action at this time.
0 commit comments