TF-4354 Hide Label in Preference View when label capability is not supported

This commit is contained in:
dab246
2026-03-04 11:03:15 +07:00
committed by Dat H. Pham
parent 3cdf65866a
commit de083b3aff
2 changed files with 4 additions and 4 deletions
@@ -37,6 +37,8 @@ extension HandleSetupLabelVisibilityInSettingExtension
getLabelVisibilityInteractor = getBinding<GetLabelVisibilityInteractor>();
if (getLabelVisibilityInteractor != null) {
consumeState(getLabelVisibilityInteractor!.execute());
} else {
isLabelVisibilityEnabled.value = false;
}
}
@@ -78,7 +78,7 @@ class ManageAccountDashBoardController extends ReloadableController
final vacationResponse = Rxn<VacationResponse>();
final dashboardSettingAction = Rxn<UIAction>();
final octetsQuota = Rxn<Quota>();
final isLabelVisibilityEnabled = RxBool(true);
final isLabelVisibilityEnabled = RxBool(PlatformInfo.isIntegrationTesting);
Uri? previousUri;
AccountMenuItem? selectedMenu;
@@ -195,9 +195,7 @@ class ManageAccountDashBoardController extends ReloadableController
getQuotas(accountId.value);
}
if (isLabelCapabilitySupported) {
setUpLabelVisibility();
}
isLabelVisibilityEnabled.value = isLabelCapabilitySupported;
}
void _getParametersRouter() {