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>(); getLabelVisibilityInteractor = getBinding<GetLabelVisibilityInteractor>();
if (getLabelVisibilityInteractor != null) { if (getLabelVisibilityInteractor != null) {
consumeState(getLabelVisibilityInteractor!.execute()); consumeState(getLabelVisibilityInteractor!.execute());
} else {
isLabelVisibilityEnabled.value = false;
} }
} }
@@ -78,7 +78,7 @@ class ManageAccountDashBoardController extends ReloadableController
final vacationResponse = Rxn<VacationResponse>(); final vacationResponse = Rxn<VacationResponse>();
final dashboardSettingAction = Rxn<UIAction>(); final dashboardSettingAction = Rxn<UIAction>();
final octetsQuota = Rxn<Quota>(); final octetsQuota = Rxn<Quota>();
final isLabelVisibilityEnabled = RxBool(true); final isLabelVisibilityEnabled = RxBool(PlatformInfo.isIntegrationTesting);
Uri? previousUri; Uri? previousUri;
AccountMenuItem? selectedMenu; AccountMenuItem? selectedMenu;
@@ -195,9 +195,7 @@ class ManageAccountDashBoardController extends ReloadableController
getQuotas(accountId.value); getQuotas(accountId.value);
} }
if (isLabelCapabilitySupported) { isLabelVisibilityEnabled.value = isLabelCapabilitySupported;
setUpLabelVisibility();
}
} }
void _getParametersRouter() { void _getParametersRouter() {