[DE mobile] Corrected Application Settings and Download
This commit is contained in:
parent
bcc3766720
commit
311bea0eb8
|
@ -4,6 +4,7 @@ import { ApplicationSettings } from "../../view/settings/ApplicationSettings";
|
|||
class ApplicationSettingsController extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.switchDisplayComments = this.switchDisplayComments.bind(this);
|
||||
}
|
||||
|
||||
setUnitMeasurement(value) {
|
||||
|
|
|
@ -28,7 +28,12 @@ class DownloadController extends Component {
|
|||
(format === Asc.c_oAscFileType.TXT) ? t("Settings.textDownloadTxt") : t("Settings.textDownloadRtf"),
|
||||
t("Settings.notcriticalErrorTitle"),
|
||||
function () {
|
||||
api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
||||
if (format == Asc.c_oAscFileType.TXT) {
|
||||
// ToDo: choose txt options
|
||||
}
|
||||
else {
|
||||
api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ const PageApplicationSettings = props => {
|
|||
</ListItem>
|
||||
<ListItem>
|
||||
<span>{_t.textResolvedComments}</span>
|
||||
<Toggle checked={isResolvedComments} disabled={!isComments ? true : false}
|
||||
<Toggle checked={isResolvedComments} disabled={!isComments}
|
||||
onChange={() => {
|
||||
store.changeDisplayResolved(!isResolvedComments);
|
||||
props.switchDisplayResolved(!isResolvedComments);
|
||||
|
|
Loading…
Reference in a new issue