TF-3977 Add disable spam banner in preferences setting
This commit is contained in:
@@ -34,9 +34,8 @@ import 'package:tmail_ui_user/features/login/data/local/token_oidc_cache_manager
|
||||
import 'package:tmail_ui_user/features/mailbox/data/local/mailbox_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/data/local/state_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/data/local/local_sort_order_manager.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/data/local/local_spam_report_manager.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/data/local/language_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/data/local/local_setting_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/data/local/preferences_setting_manager.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/manager/new_email_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/manager/new_email_cache_worker_queue.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/manager/opened_email_cache_manager.dart';
|
||||
@@ -77,7 +76,7 @@ class LocalBindings extends Bindings {
|
||||
Get.put(OidcConfigurationCacheClient());
|
||||
Get.put(OidcConfigurationCacheManager(Get.find<SharedPreferences>(), Get.find<OidcConfigurationCacheClient>()));
|
||||
Get.put(LanguageCacheManager(Get.find<SharedPreferences>()));
|
||||
Get.put(LocalSettingCacheManager(Get.find<SharedPreferences>()));
|
||||
Get.put(PreferencesSettingManager(Get.find<SharedPreferences>()));
|
||||
Get.put(RecentLoginUrlCacheClient());
|
||||
Get.put(RecentLoginUrlCacheManager((Get.find<RecentLoginUrlCacheClient>())));
|
||||
Get.put(RecentLoginUsernameCacheClient());
|
||||
@@ -94,7 +93,6 @@ class LocalBindings extends Bindings {
|
||||
Get.put(SendingEmailCacheManager(Get.find<SendingEmailHiveCacheClient>()));
|
||||
Get.put(SessionHiveCacheClient());
|
||||
Get.put(SessionCacheManager(Get.find<SessionHiveCacheClient>()));
|
||||
Get.put(LocalSpamReportManager(Get.find<SharedPreferences>()));
|
||||
Get.put(LocalSortOrderManager(Get.find<SharedPreferences>()));
|
||||
Get.put(CachingManager(
|
||||
Get.find<MailboxCacheManager>(),
|
||||
@@ -111,7 +109,6 @@ class LocalBindings extends Bindings {
|
||||
Get.find<FileUtils>(),
|
||||
Get.find<SendingEmailCacheManager>(),
|
||||
Get.find<SessionCacheManager>(),
|
||||
Get.find<LocalSpamReportManager>(),
|
||||
Get.find<KeychainSharingManager>(),
|
||||
Get.find<TokenOidcCacheManager>(),
|
||||
Get.find<OidcConfigurationCacheManager>(),
|
||||
|
||||
@@ -5124,4 +5124,25 @@ class AppLocalizations {
|
||||
args: [keyword],
|
||||
);
|
||||
}
|
||||
|
||||
String get spamReports {
|
||||
return Intl.message(
|
||||
'Spam reports',
|
||||
name: 'spamReports',
|
||||
);
|
||||
}
|
||||
|
||||
String get spamReportsSettingExplanation {
|
||||
return Intl.message(
|
||||
'Reminds you that you need to moderate your spam emails recurringly',
|
||||
name: 'spamReportsSettingExplanation',
|
||||
);
|
||||
}
|
||||
|
||||
String get spamReportToggleDescription {
|
||||
return Intl.message(
|
||||
'Enable spam report',
|
||||
name: 'spamReportToggleDescription',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user