2024-05-02 21:37:11 +03:00
|
|
|
<!--
|
|
|
|
|
|
|
|
|
|
Copyright © 2016-2024 The Thingsboard Authors
|
|
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
<div class="tb-flex column center align-center">
|
2024-05-07 11:08:39 +03:00
|
|
|
<div class="tb-flex row align-center shrink"
|
2024-05-02 21:37:11 +03:00
|
|
|
[class.row]="mobileAppSettings?.qrCodeConfig.badgePosition === badgePosition.RIGHT"
|
|
|
|
|
[class.row-reverse]="mobileAppSettings?.qrCodeConfig.badgePosition === badgePosition.LEFT">
|
2024-05-23 21:39:28 +03:00
|
|
|
<canvas #canvas class="tb-qrcode" (click)="navigateByDeepLink($event)"></canvas>
|
2024-05-15 17:26:36 +03:00
|
|
|
<div class="tb-flex column" *ngIf="mobileAppSettings?.qrCodeConfig.badgeEnabled && showBadgeContainer">
|
2024-05-21 13:46:31 +03:00
|
|
|
<img *ngIf="mobileAppSettings.iosConfig.enabled" src="assets/android-ios-stores-badges/ios_store_en_black_badge.svg">
|
|
|
|
|
<img *ngIf="mobileAppSettings.androidConfig.enabled" src="assets/android-ios-stores-badges/android_store_en_black_badge.svg">
|
2024-05-02 21:37:11 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="mobileAppSettings?.qrCodeConfig.qrCodeLabelEnabled" class="tb-qrcode-label">
|
|
|
|
|
{{ mobileAppSettings.qrCodeConfig.qrCodeLabel }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|