fix: subscription middleare

This commit is contained in:
Ahmed Bouhuolia
2024-08-25 12:42:42 +02:00
parent 959ef7a691
commit ee2d8d3065
5 changed files with 77 additions and 14 deletions

View File

@@ -77,6 +77,15 @@ function GlobalErrors({
},
});
}
if (globalErrors.subscriptionInactive) {
AppToaster.show({
message: `You can't add new data to Bigcapital because your subscription is inactive. Make sure your billing information is up-to-date from Preferences > Billing page.`,
intent: Intent.DANGER,
onDismiss: () => {
globalErrorsSet({ subscriptionInactive: false });
},
});
}
if (globalErrors.userInactive) {
AppToaster.show({
message: intl.get('global_error.authorized_user_inactive'),