TF-1014: [Dev] Show quota at the bottom of mailbox
This commit is contained in:
@@ -21,6 +21,7 @@ import 'package:tmail_ui_user/features/manage_account/data/network/forwarding_ap
|
||||
import 'package:tmail_ui_user/features/manage_account/data/network/identity_api.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/data/network/manage_account_api.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/data/network/vacation_api.dart';
|
||||
import 'package:tmail_ui_user/features/quotas/data/network/quotas_api.dart';
|
||||
import 'package:tmail_ui_user/features/session/data/network/session_api.dart';
|
||||
import 'package:tmail_ui_user/features/thread/data/network/thread_api.dart';
|
||||
import 'package:tmail_ui_user/main/exceptions/remote_exception_thrower.dart';
|
||||
@@ -86,6 +87,7 @@ class NetworkBindings extends Bindings {
|
||||
Get.put(IdentityAPI(Get.find<JmapHttpClient.HttpClient>()));
|
||||
Get.put(MdnAPI(Get.find<JmapHttpClient.HttpClient>()));
|
||||
Get.put(ForwardingAPI(Get.find<JmapHttpClient.HttpClient>()));
|
||||
Get.put(QuotasAPI(Get.find<JmapHttpClient.HttpClient>()));
|
||||
}
|
||||
|
||||
void _bindingConnection() {
|
||||
|
||||
@@ -2519,4 +2519,34 @@ class AppLocalizations {
|
||||
args: [count]
|
||||
);
|
||||
}
|
||||
|
||||
String get storageQuotas {
|
||||
return Intl.message(
|
||||
'Storage',
|
||||
name: 'storageQuotas',
|
||||
);
|
||||
}
|
||||
|
||||
String textQuotasUsed(num used, num softLimit) {
|
||||
return Intl.message(
|
||||
'$used GB of $softLimit GB Used',
|
||||
name: 'textQuotasUsed',
|
||||
args: [used, softLimit],
|
||||
);
|
||||
}
|
||||
|
||||
String textQuotasWarningTitle(num progress) {
|
||||
return Intl.message(
|
||||
'You are running out of storage ($progress%).',
|
||||
name: 'textQuotasWarningTitle',
|
||||
args: [progress],
|
||||
);
|
||||
}
|
||||
|
||||
String get textQuotasWarningContent {
|
||||
return Intl.message(
|
||||
"Soon you won't be able to email in Tmail. Please clean your storage or upgrade your storage to get full features in Tmail.",
|
||||
name: 'textQuotasWarningTitle',
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user