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 247
247
/>
248
248
{/if }
249
249
</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 >
261
250
</section >
Original file line number Diff line number Diff line change 42
42
selectedPlatforms = JSON .parse (platformsData );
43
43
}
44
44
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
+
45
54
// Create nodes from selected items
46
55
const newNodes: Node [] = [];
47
56
let nodeId = 1 ;
You can’t perform that action at this time.
0 commit comments