Do not display an empty groups selection
If no group is set for the current mailbox, do not display the groups selection space when starting a new conversation.
This commit is contained in:
parent
bfc5f6849f
commit
04429115cf
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@ class MMFCustomersGroupsServiceProvider extends ServiceProvider {
|
|||
// as the one that has been passed does not have a "groups" relationship.
|
||||
$mailbox = Mailbox::find($mailbox->id);
|
||||
$groups = $mailbox->groups;
|
||||
// Do not add the groups selection space if no group is set.
|
||||
if ( $groups->isEmpty() ) return;
|
||||
echo View::make(
|
||||
'mmfcustomersgroups::conversations/partials/groups-selection',
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue