Преглед изворни кода

Merge pull request #5521 from overleaf/ae-remove-stop-compile-button

Remove "Stop compiling" action from Recompile button in new PDF preview toolbar

GitOrigin-RevId: a4c90ec7d6213c49e11f13f045354ce66f2e9a8b
Alf Eaton пре 5 година
родитељ
комит
dd5bcd6098

+ 1 - 1
services/web/frontend/js/features/pdf-preview/components/pdf-compile-button.js

@@ -55,7 +55,7 @@ function PdfCompileButton() {
         <Button
         <Button
           className="btn-recompile"
           className="btn-recompile"
           bsStyle="success"
           bsStyle="success"
-          onClick={compiling ? stopCompile : startCompile}
+          onClick={startCompile}
           aria-label={compileButtonLabel}
           aria-label={compileButtonLabel}
         >
         >
           <Icon type="refresh" spin={compiling} />
           <Icon type="refresh" spin={compiling} />