TF-691 Persist mailbox selected when click outside destination picker to close
This commit is contained in:
@@ -140,8 +140,14 @@ class MailboxCreatorController extends BaseController {
|
||||
arguments: DestinationPickerArguments(accountId!, MailboxActions.create)
|
||||
);
|
||||
|
||||
selectedMailbox.value = destinationMailbox;
|
||||
_createListMailboxNameAsStringInMailboxLocation();
|
||||
if (destinationMailbox is PresentationMailbox) {
|
||||
final mailboxDestination = destinationMailbox == PresentationMailbox.unifiedMailbox
|
||||
? null
|
||||
: destinationMailbox;
|
||||
|
||||
selectedMailbox.value = mailboxDestination;
|
||||
_createListMailboxNameAsStringInMailboxLocation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,8 +32,12 @@ class MailboxCreatorView extends GetWidget<MailboxCreatorController> {
|
||||
SizedBox(child: _buildBody(context), width: ResponsiveUtils.defaultSizeDrawer),
|
||||
Expanded(child: Container(color: Colors.transparent)),
|
||||
]),
|
||||
landscapeTablet: Row(children: [
|
||||
SizedBox(child: _buildBody(context), width: ResponsiveUtils.defaultSizeLeftMenuMobile),
|
||||
Expanded(child: Container(color: Colors.transparent)),
|
||||
]),
|
||||
tabletLarge: Row(children: [
|
||||
SizedBox(child: _buildBody(context), width: ResponsiveUtils.defaultSizeDrawer),
|
||||
SizedBox(child: _buildBody(context), width: ResponsiveUtils.defaultSizeLeftMenuMobile),
|
||||
Expanded(child: Container(color: Colors.transparent)),
|
||||
]),
|
||||
desktop: Row(children: [
|
||||
|
||||
Reference in New Issue
Block a user