TF-939 Check EmailRules & Forwarding & Vacation based on accountCapabilities to visible in Menu
This commit is contained in:
committed by
Dat H. Pham
parent
3beb9ec606
commit
e0452448bd
+20
-6
@@ -83,12 +83,26 @@ class SettingsFirstLevelView extends GetWidget<SettingsController> {
|
|||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
SettingFirstLevelTileBuilder(
|
Obx(() {
|
||||||
AccountMenuItem.vacation.getName(context),
|
if (controller.manageAccountDashboardController.checkAvailableVacationInSession()) {
|
||||||
AccountMenuItem.vacation.getIcon(_imagePaths),
|
return Column(children: [
|
||||||
subtitle: AppLocalizations.of(context).vacationSettingExplanation,
|
SettingFirstLevelTileBuilder(
|
||||||
() => controller.selectSettings(AccountMenuItem.vacation)
|
AccountMenuItem.vacation.getName(context),
|
||||||
),
|
AccountMenuItem.vacation.getIcon(_imagePaths),
|
||||||
|
subtitle: AppLocalizations.of(context).vacationSettingExplanation,
|
||||||
|
() => controller.selectSettings(AccountMenuItem.vacation)
|
||||||
|
),
|
||||||
|
Divider(
|
||||||
|
color: AppColor.colorDividerComposer,
|
||||||
|
height: 1,
|
||||||
|
indent: SettingsUtils.getHorizontalPadding(context, _responsiveUtils),
|
||||||
|
endIndent: SettingsUtils.getHorizontalPadding(context, _responsiveUtils)
|
||||||
|
),
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
return const SizedBox.shrink();
|
||||||
|
}
|
||||||
|
}),
|
||||||
Divider(
|
Divider(
|
||||||
color: AppColor.colorDividerComposer,
|
color: AppColor.colorDividerComposer,
|
||||||
height: 1,
|
height: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user