41 lines
2.0 KiB
HTML
41 lines
2.0 KiB
HTML
|
|
<!--
|
||
|
|
|
||
|
|
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 *ngIf="!previewMode" class="tb-title" translate>admin.mobile-app.connect-mobile-app</div>
|
||
|
|
<div class="tb-flex column center align-center">
|
||
|
|
<div class="tb-flex row align-center shrink" style="margin-bottom: 8px"
|
||
|
|
[class.row]="mobileAppSettings?.qrCodeConfig.badgePosition === badgePosition.RIGHT"
|
||
|
|
[class.row-reverse]="mobileAppSettings?.qrCodeConfig.badgePosition === badgePosition.LEFT">
|
||
|
|
<canvas #canvas class="tb-qrcode"></canvas>
|
||
|
|
<div *ngIf="mobileAppSettings?.qrCodeConfig.badgeEnabled"
|
||
|
|
class="tb-flex column no-gap tb-badge-container"
|
||
|
|
[class.tb-badge-container]="!previewMode">
|
||
|
|
<ng-container *ngIf="mobileAppSettings.qrCodeConfig.badgeStyle === badgeStyle.ORIGINAL;else white">
|
||
|
|
<img *ngIf="mobileAppSettings.iosConfig.enabled" [src]="badgeStyleURLMap.get(badgeStyle.ORIGINAL).iOS">
|
||
|
|
<img *ngIf="mobileAppSettings.androidConfig.enabled" [src]="badgeStyleURLMap.get(badgeStyle.ORIGINAL).android">
|
||
|
|
</ng-container>
|
||
|
|
<ng-template #white>
|
||
|
|
<img *ngIf="mobileAppSettings.iosConfig.enabled" [src]="badgeStyleURLMap.get(badgeStyle.WHITE).iOS">
|
||
|
|
<img *ngIf="mobileAppSettings.androidConfig.enabled" [src]="badgeStyleURLMap.get(badgeStyle.WHITE).android">
|
||
|
|
</ng-template>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div *ngIf="mobileAppSettings?.qrCodeConfig.qrCodeLabelEnabled" class="tb-qrcode-label">
|
||
|
|
{{ mobileAppSettings.qrCodeConfig.qrCodeLabel }}
|
||
|
|
</div>
|
||
|
|
</div>
|