We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30f7370 + 8fa6354 commit fc59a51Copy full SHA for fc59a51
src/components/navbar.tsx
@@ -535,6 +535,16 @@ function NavBar({ layoutref }: NavBarProps) {
535
* ConvertToPython - convert the current blockly file to Python
536
*/
537
function ConvertToPython() {
538
+ if (!isConnected) {
539
+ setDialogContent(
540
+ <AlertDialog
541
+ alertMessage={t('XRP-not-connected')}
542
+ toggleDialog={toggleDialog}
543
+ />,
544
+ );
545
+ toggleDialog();
546
+ return;
547
+ }
548
setDialogContent(
549
<ConfirmationDlg
550
acceptCallback={BlocksToPythonCallback}
0 commit comments