From 7740e3b857425e868b77ba70152e1146006d9f6f Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 16 Sep 2021 13:52:37 +0300 Subject: [PATCH] Open new dashboard state instead of separate dialog in mobile app mode --- .../src/app/modules/home/components/widget/widget.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/widget.component.ts index adb0ff3824..456a1e3dee 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/widget.component.ts @@ -1026,7 +1026,7 @@ export class WidgetComponent extends PageComponent implements OnInit, AfterViewI const params = deepClone(this.widgetContext.stateController.getStateParams()); this.updateEntityParams(params, targetEntityParamName, targetEntityId, entityName, entityLabel); if (type === WidgetActionType.openDashboardState) { - if (descriptor.openInSeparateDialog) { + if (descriptor.openInSeparateDialog && !this.mobileService.isMobileApp()) { this.openDashboardStateInSeparateDialog(descriptor.targetDashboardStateId, params, descriptor.dialogTitle, descriptor.dialogHideDashboardToolbar, descriptor.dialogWidth, descriptor.dialogHeight); } else {