mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
Sdoc (#5434)
* [sdoc file view] added file view, history/trash file view for 'sdoc' * [sdoc file view] sdoc-editor: upgraded it to the latest version(0.1.5) - sdoc file view: enable 'auto save' - sdoc shared/history/trash file view: use the read-only sdoc viewer * [sdoc file view] fixup
This commit is contained in:
@@ -23,6 +23,7 @@ const propTypes = {
|
||||
const {
|
||||
canLockUnlockFile,
|
||||
repoID, repoName, repoEncrypted, parentDir, filePerm, filePath,
|
||||
fileType,
|
||||
fileName,
|
||||
canEditFile, err,
|
||||
fileEnc, // for 'edit', not undefined only for some kinds of files (e.g. text file)
|
||||
@@ -140,7 +141,7 @@ class FileToolbar extends React.Component {
|
||||
/>
|
||||
)}
|
||||
|
||||
{(canEditFile && !err) &&
|
||||
{(canEditFile && fileType != 'SDoc' && !err) &&
|
||||
( this.props.isSaving ?
|
||||
<button type={'button'} aria-label={gettext('Saving...')} className={'btn btn-icon btn-secondary btn-active'}>
|
||||
<i className={'fa fa-spin fa-spinner'}/></button> :
|
||||
@@ -204,7 +205,7 @@ class FileToolbar extends React.Component {
|
||||
|
||||
<Dropdown isOpen={this.state.dropdownOpen} toggle={this.toggle} className="d-block d-md-none">
|
||||
<ButtonGroup >
|
||||
{(canEditFile && !err) &&
|
||||
{(canEditFile && fileType != 'SDoc' && !err) &&
|
||||
(this.props.isSaving ?
|
||||
<button type={'button'} aria-label={gettext('Saving...')} className={'btn btn-icon btn-secondary btn-active'}>
|
||||
<i className={'fa fa-spin fa-spinner'}/></button> :
|
||||
|
Reference in New Issue
Block a user