|
@@ -23,7 +23,6 @@ function GoToCodeButton({
|
|
|
syncToCode,
|
|
syncToCode,
|
|
|
syncToCodeInFlight,
|
|
syncToCodeInFlight,
|
|
|
isDetachLayout,
|
|
isDetachLayout,
|
|
|
- hasSingleSelectedDoc,
|
|
|
|
|
}) {
|
|
}) {
|
|
|
const { t } = useTranslation()
|
|
const { t } = useTranslation()
|
|
|
const tooltipPlacement = isDetachLayout ? 'bottom' : 'right'
|
|
const tooltipPlacement = isDetachLayout ? 'bottom' : 'right'
|
|
@@ -51,7 +50,7 @@ function GoToCodeButton({
|
|
|
bsStyle="default"
|
|
bsStyle="default"
|
|
|
bsSize="xs"
|
|
bsSize="xs"
|
|
|
onClick={() => syncToCode(position, 72)}
|
|
onClick={() => syncToCode(position, 72)}
|
|
|
- disabled={syncToCodeInFlight || !hasSingleSelectedDoc}
|
|
|
|
|
|
|
+ disabled={syncToCodeInFlight}
|
|
|
className={buttonClasses}
|
|
className={buttonClasses}
|
|
|
aria-label={t('go_to_pdf_location_in_code')}
|
|
aria-label={t('go_to_pdf_location_in_code')}
|
|
|
>
|
|
>
|
|
@@ -367,7 +366,6 @@ function PdfSynctexControls() {
|
|
|
syncToCode={syncToCode}
|
|
syncToCode={syncToCode}
|
|
|
syncToCodeInFlight={syncToCodeInFlight}
|
|
syncToCodeInFlight={syncToCodeInFlight}
|
|
|
isDetachLayout
|
|
isDetachLayout
|
|
|
- hasSingleSelectedDoc={hasSingleSelectedDoc}
|
|
|
|
|
/>
|
|
/>
|
|
|
</>
|
|
</>
|
|
|
)
|
|
)
|
|
@@ -385,7 +383,6 @@ function PdfSynctexControls() {
|
|
|
position={position}
|
|
position={position}
|
|
|
syncToCode={syncToCode}
|
|
syncToCode={syncToCode}
|
|
|
syncToCodeInFlight={syncToCodeInFlight}
|
|
syncToCodeInFlight={syncToCodeInFlight}
|
|
|
- hasSingleSelectedDoc={hasSingleSelectedDoc}
|
|
|
|
|
/>
|
|
/>
|
|
|
</>
|
|
</>
|
|
|
)
|
|
)
|
|
@@ -399,7 +396,6 @@ GoToCodeButton.propTypes = {
|
|
|
position: PropTypes.object.isRequired,
|
|
position: PropTypes.object.isRequired,
|
|
|
syncToCode: PropTypes.func.isRequired,
|
|
syncToCode: PropTypes.func.isRequired,
|
|
|
syncToCodeInFlight: PropTypes.bool.isRequired,
|
|
syncToCodeInFlight: PropTypes.bool.isRequired,
|
|
|
- hasSingleSelectedDoc: PropTypes.bool.isRequired,
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
GoToPdfButton.propTypes = {
|
|
GoToPdfButton.propTypes = {
|