!1645 修复:历史弹窗勾选下次不显示后刷新页面未保存配置

pull/1646/MERGE
林三 3 years ago committed by ChenX
parent eafbf05f40
commit 6af5e9d7ab

@ -4,7 +4,9 @@ import { observer } from "mobx-react";
import React from "react";
import { app } from "../../ApplicationServices/Application";
import { userConfig } from "../../Editor/UserConfig";
import { BoardModalType } from "../../UI/Components/Board/BoardModal";
import { ModalState } from "../../UI/Components/Modal/ModalInterface";
import { userConfigStore } from "../../UI/Store/UserConfigStore";
import { HistoryProp } from "./OperLogsModal";
@observer
@ -66,7 +68,11 @@ export class OpenHistoryBody extends React.Component<HistoryProp, {}>
<Checkbox
style={{ margin: "15px 0px 0px 0px", float: "left", left: "18%" }}
label="下次不再显示"
onClick={() => userConfig.openHistoryList = !userConfig.openHistoryList}
onClick={async () =>
{
userConfig.openHistoryList = !userConfig.openHistoryList;
await userConfigStore.SaveConfig(BoardModalType.UserConfig, userConfig);
}}
/>
</div> : undefined
}

Loading…
Cancel
Save