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);
}
}

View File

@@ -71,6 +71,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
cross_file:
dependency: transitive
description:
name: cross_file
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.1+4"
crypto:
dependency: "direct main"
description:
@@ -91,7 +98,7 @@ packages:
name: dart_jsonwebtoken
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.0"
version: "2.3.2"
device_info:
dependency: "direct main"
description:
@@ -209,21 +216,21 @@ packages:
name: geolocator
url: "https://pub.dartlang.org"
source: hosted
version: "7.2.0"
version: "7.3.0"
geolocator_platform_interface:
dependency: transitive
description:
name: geolocator_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
version: "2.3.2"
geolocator_web:
dependency: transitive
description:
name: geolocator_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
version: "2.0.6"
http:
dependency: transitive
description:
@@ -251,28 +258,28 @@ packages:
name: image_picker
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.1+1"
version: "0.8.2"
image_picker_for_web:
dependency: transitive
description:
name: image_picker_for_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.1"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.2.0"
infinite_scroll_pagination:
dependency: "direct main"
description:
name: infinite_scroll_pagination
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1+1"
version: "3.1.0"
intl:
dependency: "direct main"
description:
@@ -377,7 +384,7 @@ packages:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.1"
pointycastle:
dependency: transitive
description:
@@ -391,7 +398,7 @@ packages:
name: qr_code_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.1"
version: "0.5.2"
sky_engine:
dependency: transitive
description: flutter
@@ -458,7 +465,7 @@ packages:
description:
path: "."
ref: HEAD
resolved-ref: "937ab8d40f33f70d6fb4a7a8c96ce974cc08e48d"
resolved-ref: "3ce11d87ca070fbbb9681259d34e0e6c2c57d0c4"
url: "git@github.com:thingsboard/dart_thingsboard_client.git"
source: git
version: "1.0.0"
@@ -475,7 +482,7 @@ packages:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.7"
version: "6.0.9"
url_launcher_linux:
dependency: transitive
description:
@@ -496,7 +503,7 @@ packages:
name: url_launcher_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
version: "2.0.4"
url_launcher_web:
dependency: transitive
description: