Browse Source

UI: refactoring for decorator

pull/8475/head
Artem Dzhereleiko 3 years ago
parent
commit
69da3e63eb
  1. 6
      ui-ngx/src/app/modules/home/components/device/device-credentials-mqtt-basic.component.html
  2. 4
      ui-ngx/src/app/modules/home/components/device/device-credentials.component.html
  3. 6
      ui-ngx/src/app/modules/home/pages/admin/oauth2-settings.component.html

6
ui-ngx/src/app/modules/home/components/device/device-credentials-mqtt-basic.component.html

@ -32,7 +32,7 @@
<ng-template #copyClientId>
<tb-copy-button
matSuffix
[miniButton]="false"
miniButton="false"
[copyText]="deviceCredentialsMqttFormGroup.get('clientId').value"
tooltipText="{{ 'device.copy-client-id' | translate }}"
tooltipPosition="above"
@ -59,7 +59,7 @@
<ng-template #copyUserName>
<tb-copy-button
matSuffix
[miniButton]="false"
miniButton="false"
*ngIf="deviceCredentialsMqttFormGroup.get('userName').value"
[copyText]="deviceCredentialsMqttFormGroup.get('userName').value"
tooltipText="{{ 'device.copy-user-name' | translate }}"
@ -91,7 +91,7 @@
<ng-template #copyPassword>
<tb-copy-button
matSuffix
[miniButton]="false"
miniButton="false"
*ngIf="deviceCredentialsMqttFormGroup.get('password').value"
[copyText]="deviceCredentialsMqttFormGroup.get('password').value"
tooltipText="{{ 'device.copy-password' | translate }}"

4
ui-ngx/src/app/modules/home/components/device/device-credentials.component.html

@ -42,7 +42,7 @@
<ng-template #copyAccessToken>
<tb-copy-button
matSuffix
[miniButton]="false"
miniButton="false"
[copyText]="deviceCredentialsFormGroup.get('credentialsId').value"
tooltipText="{{ 'device.copy-access-token' | translate }}"
tooltipPosition="above"
@ -63,7 +63,7 @@
<textarea matInput formControlName="credentialsValue" cols="15" rows="5" required></textarea>
<tb-copy-button
matSuffix
[miniButton]="false"
miniButton="false"
*ngIf="deviceCredentialsFormGroup.get('credentialsValue').value"
[copyText]="deviceCredentialsFormGroup.get('credentialsValue').value"
tooltipText="{{ 'device.copy-certificate' | translate }}"

6
ui-ngx/src/app/modules/home/pages/admin/oauth2-settings.component.html

@ -95,7 +95,7 @@
<input matInput [value]="redirectURI(domainInfo)" readonly>
<tb-copy-button
matSuffix
[miniButton]="false"
miniButton="false"
color="primary"
[copyText]="redirectURI(domainInfo)"
tooltipText="{{ 'admin.oauth2.copy-redirect-uri' | translate }}"
@ -107,7 +107,7 @@
<input matInput [value]="redirectURIMixed(domainInfo)" readonly>
<tb-copy-button
matSuffix
[miniButton]="false"
miniButton="false"
color="primary"
[copyText]="redirectURIMixed(domainInfo)"
tooltipText="{{ 'admin.oauth2.copy-redirect-uri' | translate }}"
@ -166,7 +166,7 @@
<textarea matInput formControlName="appSecret" rows="1" required></textarea>
<tb-copy-button
matSuffix
[miniButton]="false"
miniButton="false"
color="primary"
[copyText]="mobileInfo.get('appSecret').value"
tooltipText="{{ 'admin.oauth2.copy-mobile-app-secret' | translate }}"

Loading…
Cancel
Save