[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 {
|
class ApplicationSettingsController extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
this.switchDisplayComments = this.switchDisplayComments.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
setUnitMeasurement(value) {
|
setUnitMeasurement(value) {
|
||||||
|
|
|
@ -28,7 +28,12 @@ class DownloadController extends Component {
|
||||||
(format === Asc.c_oAscFileType.TXT) ? t("Settings.textDownloadTxt") : t("Settings.textDownloadRtf"),
|
(format === Asc.c_oAscFileType.TXT) ? t("Settings.textDownloadTxt") : t("Settings.textDownloadRtf"),
|
||||||
t("Settings.notcriticalErrorTitle"),
|
t("Settings.notcriticalErrorTitle"),
|
||||||
function () {
|
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>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<span>{_t.textResolvedComments}</span>
|
<span>{_t.textResolvedComments}</span>
|
||||||
<Toggle checked={isResolvedComments} disabled={!isComments ? true : false}
|
<Toggle checked={isResolvedComments} disabled={!isComments}
|
||||||
onChange={() => {
|
onChange={() => {
|
||||||
store.changeDisplayResolved(!isResolvedComments);
|
store.changeDisplayResolved(!isResolvedComments);
|
||||||
props.switchDisplayResolved(!isResolvedComments);
|
props.switchDisplayResolved(!isResolvedComments);
|
||||||
|
|
Loading…
Reference in a new issue