TF-4145 Create paywall url from workplaceFqdn

This commit is contained in:
dab246
2025-11-14 17:59:21 +07:00
committed by Dat H. Pham
parent e61253eb1f
commit d6e959c4d9
18 changed files with 283 additions and 118 deletions
@@ -1,7 +1,6 @@
import 'package:dartz/dartz.dart';
import 'package:jmap_dart_client/jmap/account_id.dart';
import 'package:tmail_ui_user/features/home/data/exceptions/session_exceptions.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/extensions/validate_setting_capability_supported_extension.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/manage_account_dashboard_controller.dart';
import 'package:tmail_ui_user/features/quotas/domain/exceptions/quotas_exception.dart';
import 'package:tmail_ui_user/features/quotas/domain/extensions/list_quotas_extensions.dart';
@@ -13,9 +12,7 @@ import 'package:tmail_ui_user/main/routes/route_navigation.dart';
extension ValidateStorageMenuVisibleExtension
on ManageAccountDashBoardController {
void injectQuotaBindings() {
if (isStorageCapabilitySupported) {
QuotasInteractorBindings().dependencies();
}
QuotasInteractorBindings().dependencies();
}
void getQuotas(AccountId? accountId) {
@@ -27,7 +24,7 @@ extension ValidateStorageMenuVisibleExtension
}
getQuotasInteractor = getBinding<GetQuotasInteractor>();
if (getQuotasInteractor == null || !isStorageCapabilitySupported) {
if (getQuotasInteractor == null) {
consumeState(
Stream.value(Left(GetQuotasFailure(QuotasNotSupportedException))),
);