Skip to content

Commit a9fdce5

Browse files
total pager sempre atualizado
1 parent 21a5fae commit a9fdce5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/directives/crud/lets-crud-list.directive.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
scope.$el.find('.table-container .backgrid-paginator ul.total-records').remove();
5656
scope.$el.find('.table-container .backgrid-paginator').append(infoTotal);
5757
});
58-
scope.$parent.totalPager = scope.$parent.totalPager ? scope.$parent.totalPager :resp.total_count;
58+
// Sempre pegar atualizado (não causa problema em páginas customizadas)
59+
scope.$parent.totalPager = resp.total_count;
5960
return { totalRecords: resp.total_count };
6061
},
6162
};

0 commit comments

Comments
 (0)