mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 04:31:26 +08:00
Merge branch 'feature/mobile-apps-on-reactjs-new-test' into feature/mobile-apps-on-reactjs
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user