From c6396e40742ae6efcd8923a64e22ca29e54b7764 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Fri, 25 Oct 2024 11:42:45 +0300 Subject: [PATCH] UI: Add mobile configure commands and add useSystemSettings in qr code widget --- .../mobile/qrCodeSettings/QrCodeSettings.java | 2 + ...le-app-configuration-dialog.component.html | 49 +++++++++++- ...le-app-configuration-dialog.component.scss | 76 ++++++++++++++++++- ...bile-app-configuration-dialog.component.ts | 29 ++++++- .../mobile-app-table-config.resolver.ts | 23 +++++- ...ile-qr-code-widget-settings.component.html | 9 ++- ...obile-qr-code-widget-settings.component.ts | 53 ++++++++----- .../app/shared/models/mobile-app.models.ts | 1 + .../app/shared/models/user-settings.models.ts | 1 + .../assets/locale/locale.constant-en_US.json | 15 +++- ui-ngx/src/styles.scss | 3 + 11 files changed, 232 insertions(+), 29 deletions(-) diff --git a/common/data/src/main/java/org/thingsboard/server/common/data/mobile/qrCodeSettings/QrCodeSettings.java b/common/data/src/main/java/org/thingsboard/server/common/data/mobile/qrCodeSettings/QrCodeSettings.java index 0af5e53e5a..ce30e9c8ed 100644 --- a/common/data/src/main/java/org/thingsboard/server/common/data/mobile/qrCodeSettings/QrCodeSettings.java +++ b/common/data/src/main/java/org/thingsboard/server/common/data/mobile/qrCodeSettings/QrCodeSettings.java @@ -35,6 +35,8 @@ public class QrCodeSettings extends BaseData implements HasTen @Schema(description = "JSON object with Tenant Id.", accessMode = Schema.AccessMode.READ_ONLY) private TenantId tenantId; + @Schema(description = "Use settings from system level", example = "true") + private boolean useSystemSettings; @Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "Type of application: true means use default Thingsboard app", example = "true") private boolean useDefaultApp; @Schema(description = "Mobile app bundle.") diff --git a/ui-ngx/src/app/modules/home/pages/mobile/applications/mobile-app-configuration-dialog.component.html b/ui-ngx/src/app/modules/home/pages/mobile/applications/mobile-app-configuration-dialog.component.html index 5689e40f1e..17108aafe2 100644 --- a/ui-ngx/src/app/modules/home/pages/mobile/applications/mobile-app-configuration-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/mobile/applications/mobile-app-configuration-dialog.component.html @@ -23,10 +23,53 @@ close -
- +
+
+
mobile.configuration-step.prepare-environment-title
+
+
mobile.configuration-step.prepare-environment-text
+ + description{{ 'common.documentation' | translate }} + +
+
+
+
mobile.configuration-step.get-source-code-title
+
mobile.configuration-step.get-source-code-text
+ +
+
+
mobile.configuration-step.configure-api-title
+
mobile.configuration-step.configure-api-text
+ +
mobile.configuration-step.configure-api-hint
+ +
+
+
mobile.configuration-step.run-app-title
+
mobile.configuration-step.run-app-text
+ +
+
-
+
{{ 'action.dont-show-again' | translate}}