Fix subscription page bugs

This commit is contained in:
Yang Luo
2023-06-03 10:15:29 +08:00
parent 51a76518ad
commit 9cffb43265
7 changed files with 11 additions and 20 deletions

View File

@ -33,9 +33,8 @@ class PricingListPage extends BaseListPage {
createdTime: moment().format(),
plans: [],
displayName: `New Pricing - ${randomName}`,
hasTrial: false,
isEnabled: true,
trialDuration: 14,
trialDuration: 7,
};
}
@ -189,7 +188,7 @@ class PricingListPage extends BaseListPage {
value = params.type;
}
this.setState({loading: true});
PricingBackend.getPricings("", params.pagination.current, params.pagination.pageSize, field, value, sortField, sortOrder)
PricingBackend.getPricings(Setting.isAdminUser(this.props.account) ? "" : this.props.account.owner, params.pagination.current, params.pagination.pageSize, field, value, sortField, sortOrder)
.then((res) => {
if (res.status === "ok") {
this.setState({