TF-939 Check EmailRules & Forwarding & Vacation based on accountCapabilities to visible in Menu

This commit is contained in:
Dat PHAM HOANG
2022-09-16 11:20:35 +07:00
committed by Dat H. Pham
parent ffca17210b
commit 3beb9ec606
3 changed files with 19 additions and 2 deletions
@@ -213,7 +213,11 @@ class SettingsView extends GetWidget<SettingsController> {
return const SizedBox.shrink();
}
case AccountMenuItem.vacation:
return VacationView();
if (controller.manageAccountDashboardController.checkAvailableVacationInSession()) {
return VacationView();
} else {
return const SizedBox.shrink();
}
default:
return const SizedBox.shrink();
}