TF-4354 Hide Label in Preference View when label capability is not supported
This commit is contained in:
+2
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user