1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

update view pdf file page (#6966)

hide print button if can not download
This commit is contained in:
lian
2024-10-30 09:48:06 +08:00
committed by GitHub
parent 801b473b5d
commit 096e9cb9fd

View File

@@ -117,7 +117,7 @@ class FileToolbar extends React.Component {
return (
<Fragment>
<div className="d-none d-md-flex justify-content-between align-items-center flex-shrink-0 ml-4">
{fileType == 'PDF' && (
{(fileType == 'PDF' && canDownloadFile ) && (
<IconButton
id="seafile-pdf-print"
icon="print"