Add owner to select-plan page

This commit is contained in:
Yang Luo
2023-05-31 00:25:34 +08:00
parent fb1db7823b
commit f4b69cad9b
5 changed files with 7 additions and 7 deletions

View File

@ -194,7 +194,7 @@ class PricingEditPage extends React.Component {
{Setting.getLabel(i18next.t("pricing:Has trial"), i18next.t("pricing:Has trial - Tooltip"))} :
</Col>
<Col span={1} >
<Switch disabled={true} checked={this.state.pricing.hasTrial} onChange={checked => {
<Switch checked={this.state.pricing.hasTrial} onChange={checked => {
this.updatePricingField("hasTrial", checked);
}} />
</Col>
@ -286,7 +286,7 @@ class PricingEditPage extends React.Component {
}
renderPreview() {
const pricingUrl = `/select-plan/${this.state.pricing.name}`;
const pricingUrl = `/select-plan/${this.state.pricing.owner}/${this.state.pricing.name}`;
return (
<React.Fragment>
<Col>