TF-4354 Activate Label by default for all users
This commit is contained in:
@@ -8,7 +8,7 @@ class SettingCacheManager {
|
||||
final SharedPreferences _sharedPreferences;
|
||||
|
||||
bool getLabelVisibility() {
|
||||
return _sharedPreferences.getBool(_labelVisibilitySettingKey) ?? false;
|
||||
return _sharedPreferences.getBool(_labelVisibilitySettingKey) ?? true;
|
||||
}
|
||||
|
||||
Future<void> saveLabelVisibility(bool visible) async {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:tmail_ui_user/features/manage_account/domain/model/preferences/preferences_config.dart';
|
||||
|
||||
@@ -8,10 +7,9 @@ part 'label_config.g.dart';
|
||||
class LabelConfig extends PreferencesConfig {
|
||||
final bool isEnabled;
|
||||
|
||||
LabelConfig({this.isEnabled = false});
|
||||
LabelConfig({this.isEnabled = true});
|
||||
|
||||
factory LabelConfig.initial() =>
|
||||
LabelConfig(isEnabled: PlatformInfo.isIntegrationTesting);
|
||||
factory LabelConfig.initial() => LabelConfig();
|
||||
|
||||
factory LabelConfig.fromJson(Map<String, dynamic> json) =>
|
||||
_$LabelConfigFromJson(json);
|
||||
|
||||
@@ -78,7 +78,7 @@ class ManageAccountDashBoardController extends ReloadableController
|
||||
final vacationResponse = Rxn<VacationResponse>();
|
||||
final dashboardSettingAction = Rxn<UIAction>();
|
||||
final octetsQuota = Rxn<Quota>();
|
||||
final isLabelVisibilityEnabled = RxBool(PlatformInfo.isIntegrationTesting);
|
||||
final isLabelVisibilityEnabled = RxBool(true);
|
||||
|
||||
Uri? previousUri;
|
||||
AccountMenuItem? selectedMenu;
|
||||
|
||||
Reference in New Issue
Block a user