followers fix

This commit is contained in:
Yuri Kuznetsov
2022-04-29 11:34:55 +03:00
parent 45d2d4306b
commit 4af110cd69
2 changed files with 4 additions and 2 deletions
@@ -48,7 +48,7 @@ use Espo\Services\Stream as StreamService;
*/
class FollowersLoader implements LoaderInterface
{
private const FOLLOWERS_LIMIT = 5;
private const FOLLOWERS_LIMIT = 6;
private StreamService $streamService;
+3 -1
View File
@@ -32,11 +32,13 @@ define('views/fields/followers', 'views/fields/link-multiple', function (Dep) {
foreignScope: 'User',
portionSize: 4,
portionSize: 6,
setup: function () {
Dep.prototype.setup.call(this);
this.portionSize = this.getConfig().get('recordFollowersLoadLimit') || this.portionSize;
this.limit = this.portionSize;
this.listenTo(this.model, 'change:isFollowed', () => {