Update dashboards fetch function

This commit is contained in:
Igor Kulikov
2021-07-22 17:11:45 +03:00
parent 199ceab5d4
commit cff29829e4
2 changed files with 22 additions and 15 deletions

View File

@@ -20,9 +20,9 @@ mixin DashboardsBase on EntitiesBase<DashboardInfo, PageLink> {
@override
Future<PageData<DashboardInfo>> fetchEntities(PageLink pageLink) {
if (tbClient.isTenantAdmin()) {
return tbClient.getDashboardService().getTenantDashboards(pageLink);
return tbClient.getDashboardService().getTenantDashboards(pageLink, mobile: true);
} else {
return tbClient.getDashboardService().getCustomerDashboards(tbClient.getAuthUser()!.customerId, pageLink);
return tbClient.getDashboardService().getCustomerDashboards(tbClient.getAuthUser()!.customerId, pageLink, mobile: true);
}
}