TF-3758 Support system back button close left mailbox menu when it is opened on web responsive
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+9
-3
@@ -2902,12 +2902,18 @@ class MailboxDashBoardController extends ReloadableController
|
|||||||
openDefaultMailbox();
|
openDefaultMailbox();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
} else if (searchController.isSearchEmailRunning) {
|
||||||
if (searchController.isSearchEmailRunning) {
|
|
||||||
dispatchMailboxUIAction(SystemBackToInboxAction());
|
dispatchMailboxUIAction(SystemBackToInboxAction());
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (selectedMailbox.value?.isInbox == true) {
|
if (PlatformInfo.isWeb &&
|
||||||
|
currentContext != null &&
|
||||||
|
!responsiveUtils.isDesktop(currentContext!) &&
|
||||||
|
isDrawerOpen
|
||||||
|
) {
|
||||||
|
closeMailboxMenuDrawer();
|
||||||
|
return true;
|
||||||
|
} else if (selectedMailbox.value?.isInbox == true) {
|
||||||
pushAndPopAll(AppRoutes.home);
|
pushAndPopAll(AppRoutes.home);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user