We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30f7370 commit 8fa6354Copy full SHA for 8fa6354
1 file changed
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