feat: implement module purchase dialog with subscription type selection, auto-renew, and dependency checks, replacing the dedicated purchase page.

This commit is contained in:
2025-12-03 01:31:25 +01:00
parent a4e0c276c6
commit 6e427e0199
7 changed files with 361 additions and 17 deletions

View File

@@ -244,7 +244,7 @@ public class ModulesController : ControllerBase
Dependencies = module.GetDependencies().ToList(),
RoutePath = module.RoutePath,
IsAvailable = module.IsAvailable,
IsEnabled = module.IsCore || (module.Subscription?.IsValid() ?? false),
IsEnabled = module.IsCore || ((module.Subscription?.IsEnabled ?? false) && (module.Subscription?.IsValid() ?? false)),
Subscription = module.Subscription != null ? MapSubscriptionToDto(module.Subscription) : null
};
}