fix: add isReadOnly for syncer (#2015)

* feat: add read only mod for syncer

* feat: change readOnlyEnable to isReadOnly
This commit is contained in:
XDTD
2023-06-24 17:49:06 +08:00
committed by Yang Luo
parent 1780620ef4
commit 68f032b54d
15 changed files with 49 additions and 11 deletions

View File

@ -376,6 +376,16 @@ class SyncerEditPage extends React.Component {
</div>
</Col>
</Row>
<Row style={{marginTop: "20px"}} >
<Col style={{marginTop: "5px"}} span={(Setting.isMobile()) ? 19 : 2}>
{Setting.getLabel(i18next.t("syncer:Is read-only"), i18next.t("syncer:Is read-only - Tooltip"))} :
</Col>
<Col span={1} >
<Switch checked={this.state.syncer.isReadOnly} onChange={checked => {
this.updateSyncerField("isReadOnly", checked);
}} />
</Col>
</Row>
<Row style={{marginTop: "20px"}} >
<Col style={{marginTop: "5px"}} span={(Setting.isMobile()) ? 19 : 2}>
{Setting.getLabel(i18next.t("general:Is enabled"), i18next.t("general:Is enabled - Tooltip"))} :