thingsboard/ui-ngx/src/app/shared/components/time/timezone-panel.component.html

27 lines
1011 B
HTML
Raw Normal View History

2024-07-18 17:59:04 +03:00
<form [formGroup]="timezoneForm" class="mat-content">
<section class="tb-form-panel">
<div class="tb-form-panel-title">{{ 'timezone.timezone' | translate }}</div>
<tb-timezone-select [localBrowserTimezonePlaceholderOnEmpty]="localBrowserTimezonePlaceholderOnEmpty"
2024-07-18 17:59:04 +03:00
formControlName="timezone"
subscriptSizing="dynamic"
appearance="outline"
displayLabel="false">
2024-07-18 17:59:04 +03:00
</tb-timezone-select>
</section>
</form>
<div fxLayout="row" class="tb-panel-actions" fxLayoutAlign="end center">
<button type="button"
mat-button
[disabled]="(isLoading$ | async)"
(click)="cancel()">
{{ 'action.cancel' | translate }}
</button>
<button type="button"
mat-raised-button
color="primary"
(click)="update()"
[disabled]="(isLoading$ | async) || timezoneForm.invalid || !timezoneForm.dirty">
{{ 'action.apply' | translate }}
</button>
</div>