feat: limit the width of the organization.hasPrivilegeConsent popconfirm (#3869)

This commit is contained in:
DacongDA
2025-06-07 00:30:41 +08:00
committed by GitHub
parent 4cb0cd7c5a
commit de7e322fbb

View File

@ -277,14 +277,20 @@ class OrganizationEditPage extends React.Component {
{Setting.getLabel(i18next.t("organization:Has privilege consent"), i18next.t("organization:Has privilege consent - Tooltip"))} : {Setting.getLabel(i18next.t("organization:Has privilege consent"), i18next.t("organization:Has privilege consent - Tooltip"))} :
</Col> </Col>
<Col span={1} > <Col span={1} >
<Popconfirm {
title={i18next.t("organization:Has privilege consent warning")} !this.state.organization.hasPrivilegeConsent ? (
onConfirm={() => {this.updateOrganizationField("hasPrivilegeConsent", !this.state.organization.hasPrivilegeConsent);}} <Popconfirm
okText={i18next.t("general:OK")} title={i18next.t("organization:Has privilege consent warning")}
cancelText={i18next.t("general:Cancel")} onConfirm={() => {this.updateOrganizationField("hasPrivilegeConsent", !this.state.organization.hasPrivilegeConsent);}}
> okText={i18next.t("general:OK")}
<Switch checked={this.state.organization.hasPrivilegeConsent} /> cancelText={i18next.t("general:Cancel")}
</Popconfirm> styles={{root: {width: "800px"}}}
>
<Switch checked={this.state.organization.hasPrivilegeConsent} />
</Popconfirm>
) :
<Switch checked={this.state.organization.hasPrivilegeConsent} onChange={() => {this.updateOrganizationField("hasPrivilegeConsent", !this.state.organization.hasPrivilegeConsent);}} />
}
</Col> </Col>
</Row> </Row>
) : null ) : null