[DE mobile] Corrected Application Settings and Download

This commit is contained in:
SergeyEzhin 2020-12-02 20:32:23 +03:00
parent bcc3766720
commit 311bea0eb8
3 changed files with 8 additions and 2 deletions

View file

@ -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) {

View file

@ -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));
}
}
);
}

View file

@ -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);