[DE mobile] Fix bug 51870
This commit is contained in:
parent
2b5450de28
commit
6592b52fd3
|
@ -74,6 +74,13 @@ const Settings = props => {
|
|||
}, 400);
|
||||
};
|
||||
|
||||
const onDownloadOrigin = () => {
|
||||
closeModal();
|
||||
setTimeout(() => {
|
||||
Common.EditorApi.get().asc_DownloadOrigin();
|
||||
}, 0);
|
||||
};
|
||||
|
||||
return <SettingsView usePopover={!Device.phone}
|
||||
openOptions={props.openOptions}
|
||||
onclosed={props.onclosed}
|
||||
|
@ -81,6 +88,7 @@ const Settings = props => {
|
|||
onPrint={onPrint}
|
||||
showHelp={showHelp}
|
||||
onOrthographyCheck={onOrthographyCheck}
|
||||
onDownloadOrigin={onDownloadOrigin}
|
||||
/>
|
||||
};
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ const SettingsList = inject("storeAppOptions", "storeReview")(observer(props =>
|
|||
</ListItem>
|
||||
}
|
||||
{_canDownloadOrigin &&
|
||||
<ListItem title={_t.textDownload} link="#" onClick={() => {}}> {/*ToDo*/}
|
||||
<ListItem title={_t.textDownload} link="#" onClick={props.onDownloadOrigin} className='no-indicator'>
|
||||
<Icon slot="media" icon="icon-download"></Icon>
|
||||
</ListItem>
|
||||
}
|
||||
|
@ -199,10 +199,10 @@ class SettingsView extends Component {
|
|||
return (
|
||||
show_popover ?
|
||||
<Popover id="settings-popover" className="popover__titled" onPopoverClosed={() => this.props.onclosed()}>
|
||||
<SettingsList inPopover={true} onOptionClick={this.onoptionclick} openOptions={this.props.openOptions} style={{height: '410px'}} onReaderMode={this.props.onReaderMode} onPrint={this.props.onPrint} showHelp={this.props.showHelp} onOrthographyCheck={this.props.onOrthographyCheck}/>
|
||||
<SettingsList inPopover={true} onOptionClick={this.onoptionclick} openOptions={this.props.openOptions} style={{height: '410px'}} onReaderMode={this.props.onReaderMode} onPrint={this.props.onPrint} showHelp={this.props.showHelp} onOrthographyCheck={this.props.onOrthographyCheck} onDownloadOrigin={this.props.onDownloadOrigin}/>
|
||||
</Popover> :
|
||||
<Popup className="settings-popup" onPopupClosed={() => this.props.onclosed()}>
|
||||
<SettingsList onOptionClick={this.onoptionclick} openOptions={this.props.openOptions} onReaderMode={this.props.onReaderMode} onPrint={this.props.onPrint} showHelp={this.props.showHelp} onOrthographyCheck={this.props.onOrthographyCheck}/>
|
||||
<SettingsList onOptionClick={this.onoptionclick} openOptions={this.props.openOptions} onReaderMode={this.props.onReaderMode} onPrint={this.props.onPrint} showHelp={this.props.showHelp} onOrthographyCheck={this.props.onOrthographyCheck} onDownloadOrigin={this.props.onDownloadOrigin}/>
|
||||
</Popup>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue