2020-09-10 19:37:14 +03:00
|
|
|
<!--
|
|
|
|
|
|
2022-01-17 14:07:46 +02:00
|
|
|
Copyright © 2016-2022 The Thingsboard Authors
|
2020-09-10 19:37:14 +03:00
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
-->
|
2020-10-12 17:29:27 +03:00
|
|
|
<form [formGroup]="editDetailsFormGroup" (ngSubmit)="save()" style="width: 800px;">
|
2020-09-10 19:37:14 +03:00
|
|
|
<mat-toolbar color="primary">
|
2020-10-12 17:29:27 +03:00
|
|
|
<h2>{{ 'device-profile.alarm-rule-details' | translate }}</h2>
|
2020-09-10 19:37:14 +03:00
|
|
|
<span fxFlex></span>
|
|
|
|
|
<button mat-icon-button
|
|
|
|
|
(click)="cancel()"
|
|
|
|
|
type="button">
|
|
|
|
|
<mat-icon class="material-icons">close</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-toolbar>
|
|
|
|
|
<mat-progress-bar color="warn" mode="indeterminate" *ngIf="isLoading$ | async">
|
|
|
|
|
</mat-progress-bar>
|
|
|
|
|
<div mat-dialog-content>
|
|
|
|
|
<fieldset [disabled]="isLoading$ | async">
|
|
|
|
|
<div fxFlex fxLayout="column">
|
2020-10-12 17:29:27 +03:00
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>device-profile.alarm-details</mat-label>
|
|
|
|
|
<textarea matInput formControlName="alarmDetails" rows="5"></textarea>
|
2022-01-20 11:06:25 +02:00
|
|
|
<mat-hint [innerHTML]="'device-profile.alarm-rule-details-hint' | translate | safe: 'html'"></mat-hint>
|
2020-10-12 17:29:27 +03:00
|
|
|
</mat-form-field>
|
2020-09-10 19:37:14 +03:00
|
|
|
</div>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</div>
|
|
|
|
|
<div mat-dialog-actions fxLayoutAlign="end center">
|
|
|
|
|
<button mat-button color="primary"
|
|
|
|
|
type="button"
|
|
|
|
|
[disabled]="(isLoading$ | async)"
|
|
|
|
|
(click)="cancel()" cdkFocusInitial>
|
2020-10-12 17:29:27 +03:00
|
|
|
{{ 'action.cancel' | translate }}
|
2020-09-10 19:37:14 +03:00
|
|
|
</button>
|
2020-10-13 19:48:46 +03:00
|
|
|
<button *ngIf="!data.readonly" mat-raised-button color="primary"
|
|
|
|
|
type="submit"
|
|
|
|
|
[disabled]="(isLoading$ | async) || editDetailsFormGroup.invalid || !editDetailsFormGroup.dirty">
|
|
|
|
|
{{ 'action.save' | translate }}
|
|
|
|
|
</button>
|
2020-09-10 19:37:14 +03:00
|
|
|
</div>
|
|
|
|
|
</form>
|