mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 09:42:00 +00:00
Merge pull request #7036 from overleaf/ta-go-to-pdf-hide-logs
Hide Logs When Highlighting PDF Location GitOrigin-RevId: cdf22393b1dde5eb842cf0f8b2d7d8c408bc8eca
This commit is contained in:
parent
ac0e9d06c3
commit
1fc13e6549
1 changed files with 10 additions and 2 deletions
|
@ -109,8 +109,14 @@ function PdfSynctexControls() {
|
|||
|
||||
const { detachRole } = useLayoutContext()
|
||||
|
||||
const { clsiServerId, pdfUrl, pdfViewer, position, setHighlights } =
|
||||
useCompileContext()
|
||||
const {
|
||||
clsiServerId,
|
||||
pdfUrl,
|
||||
pdfViewer,
|
||||
position,
|
||||
setShowLogs,
|
||||
setHighlights,
|
||||
} = useCompileContext()
|
||||
|
||||
const [cursorPosition, setCursorPosition] = useState(() => {
|
||||
const position = localStorage.getItem(
|
||||
|
@ -206,6 +212,7 @@ function PdfSynctexControls() {
|
|||
|
||||
getJSON(`/project/${projectId}/sync/code?${params}`, { signal })
|
||||
.then(data => {
|
||||
setShowLogs(false)
|
||||
setHighlights(data.pdf)
|
||||
})
|
||||
.catch(error => {
|
||||
|
@ -221,6 +228,7 @@ function PdfSynctexControls() {
|
|||
clsiServerId,
|
||||
isMounted,
|
||||
projectId,
|
||||
setShowLogs,
|
||||
setHighlights,
|
||||
setSyncToPdfInFlight,
|
||||
signal,
|
||||
|
|
Loading…
Reference in a new issue