mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-28 11:41:18 +00:00
update view pdf file page (#6966)
hide print button if can not download
This commit is contained in:
parent
801b473b5d
commit
096e9cb9fd
@ -117,7 +117,7 @@ class FileToolbar extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div className="d-none d-md-flex justify-content-between align-items-center flex-shrink-0 ml-4">
|
<div className="d-none d-md-flex justify-content-between align-items-center flex-shrink-0 ml-4">
|
||||||
{fileType == 'PDF' && (
|
{(fileType == 'PDF' && canDownloadFile ) && (
|
||||||
<IconButton
|
<IconButton
|
||||||
id="seafile-pdf-print"
|
id="seafile-pdf-print"
|
||||||
icon="print"
|
icon="print"
|
||||||
|
Loading…
Reference in New Issue
Block a user