Fix viewer export (#5713)

This commit is contained in:
Reece Browne
2026-02-13 12:16:52 +00:00
committed by GitHub
parent 7c3c7937b3
commit e01734fb7d
3 changed files with 24 additions and 4 deletions
@@ -173,11 +173,14 @@ export default function RightRail() {
if (currentView === 'pageEditor') {
return t('rightRail.exportAll', 'Export PDF');
}
if (currentView === 'viewer') {
return terminology.download;
}
if (selectedCount > 0) {
return terminology.downloadSelected;
}
return terminology.downloadAll;
}, [currentView, selectedCount, t]);
}, [currentView, selectedCount, t, terminology]);
return (
<div ref={sidebarRefs.rightRailRef} className="right-rail" data-sidebar="right-rail">