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> {
14941494
14951495 download_pdf ( ) : void {
14961496 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 } ) ;
14971506 this . redux
14981507 . getProjectActions ( this . project_id )
1499- . download_file ( { path : path , log : true } ) ;
1508+ . download_file ( { path, log : false , auto : true } ) ;
15001509 }
15011510
15021511 print ( id : string ) : void {
You can’t perform that action at this time.
0 commit comments