TF-939 Check EmailRules & Forwarding & Vacation based on accountCapabilities to visible in Menu
This commit is contained in:
committed by
Dat H. Pham
parent
ffca17210b
commit
3beb9ec606
@@ -43,7 +43,9 @@ class ManageAccountMenuController extends BaseController {
|
||||
if (dashBoardController.checkAvailableForwardInSession()) {
|
||||
listAccountMenuItem.add(AccountMenuItem.forward);
|
||||
}
|
||||
listAccountMenuItem.add(AccountMenuItem.vacation);
|
||||
if (dashBoardController.checkAvailableVacationInSession()) {
|
||||
listAccountMenuItem.add(AccountMenuItem.vacation);
|
||||
}
|
||||
listAccountMenuItem.add(AccountMenuItem.languageAndRegion);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user