1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-27 11:10:10 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"