File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/packages/frontend/frame-editors/latex-editor Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1494,9 +1494,18 @@ export class Actions extends BaseActions<LatexEditorState> {
1494
1494
1495
1495
download_pdf ( ) : void {
1496
1496
const path : string = pdf_path ( this . path ) ;
1497
+
1498
+ // we use auto false and true, since the pdf may not exist, and we don't want
1499
+ // a **silent failure**. With auto:false, the pdf appears in a new tab
1500
+ // and user has to click again to actually get it on their computer, but
1501
+ // auto:true makes it so it downloads automatically to avoid that click.
1502
+ // If there is an error, that is clear too.
1503
+ this . redux
1504
+ . getProjectActions ( this . project_id )
1505
+ . download_file ( { path, log : true , auto : false } ) ;
1497
1506
this . redux
1498
1507
. getProjectActions ( this . project_id )
1499
- . download_file ( { path : path , log : true } ) ;
1508
+ . download_file ( { path, log : false , auto : true } ) ;
1500
1509
}
1501
1510
1502
1511
print ( id : string ) : void {
You can’t perform that action at this time.
0 commit comments