Compare commits

...

2 commits

Author SHA1 Message Date
e85ecfae16
1.1.0 release
* Do not display an empty groups selection.
2024-07-30 11:57:16 +02:00
04429115cf
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.
2024-07-30 11:55:22 +02:00
5 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,7 @@
1.1.0
* Do not display an empty groups selection.
1.0.0 1.0.0
* Improve the sorting of e-mails when creating/editing a group * Improve the sorting of e-mails when creating/editing a group

View file

@ -102,6 +102,8 @@ class MMFCustomersGroupsServiceProvider extends ServiceProvider {
// as the one that has been passed does not have a "groups" relationship. // as the one that has been passed does not have a "groups" relationship.
$mailbox = Mailbox::find($mailbox->id); $mailbox = Mailbox::find($mailbox->id);
$groups = $mailbox->groups; $groups = $mailbox->groups;
// Do not add the groups selection space if no group is set.
if ( $groups->isEmpty() ) return;
echo View::make( echo View::make(
'mmfcustomersgroups::conversations/partials/groups-selection', 'mmfcustomersgroups::conversations/partials/groups-selection',
[ [

View file

@ -13,11 +13,11 @@ A groups is a list of customers, and selecting it when starting a conversation a
Download the [release tarball] and extract its content into `Modules/MMFCustomersGroups`. Download the [release tarball] and extract its content into `Modules/MMFCustomersGroups`.
[release tarball]: https://port.numenaute.org/MMF/freescout-customers-groups/archive/1.0.0.tar.gz [release tarball]: https://port.numenaute.org/MMF/freescout-customers-groups/archive/1.1.0.tar.gz
``` ```
wget https://port.numenaute.org/MMF/freescout-customers-groups/archive/1.0.0.tar.gz -O freescout-customers-groups-1.0.0.tar.gz wget https://port.numenaute.org/MMF/freescout-customers-groups/archive/1.1.0.tar.gz -O freescout-customers-groups-1.1.0.tar.gz
tar xf freescout-customers-groups-1.0.0.tar.gz -C Modules tar xf freescout-customers-groups-1.1.0.tar.gz -C Modules
mv Modules/freescout-customers-groups Modules/MMFCustomersGroups mv Modules/freescout-customers-groups Modules/MMFCustomersGroups
``` ```

View file

@ -1,7 +1,7 @@
{ {
"name": "millions-missing-france/freescout-customers-groups", "name": "millions-missing-france/freescout-customers-groups",
"description": "Freescout customers groups - Set groups of Freescout Customers for easier group emailing", "description": "Freescout customers groups - Set groups of Freescout Customers for easier group emailing",
"version": "1.0.0", "version": "1.1.0",
"type": "library", "type": "library",
"license": ["AGPL-3.0-only"], "license": ["AGPL-3.0-only"],
"authors": [ "authors": [

View file

@ -2,7 +2,7 @@
"name": "MMFCustomersGroups", "name": "MMFCustomersGroups",
"alias": "mmfcustomersgroups", "alias": "mmfcustomersgroups",
"description": "Freescout customers groups - Set groups of Freescout Customers for easier group emailing", "description": "Freescout customers groups - Set groups of Freescout Customers for easier group emailing",
"version": "1.0.0", "version": "1.1.0",
"detailsUrl": "", "detailsUrl": "",
"author": "Millions Missing FRANCE", "author": "Millions Missing FRANCE",
"authorUrl": "info@millionsmissing.fr", "authorUrl": "info@millionsmissing.fr",