Revize ea0e5344
Přidáno uživatelem Jakub Hlaváč před téměř 4 roky(ů)
src/app/dashboard/components/dashboard.component.html | ||
---|---|---|
11 | 11 |
<p-accordionTab *ngFor="let unit of units"> |
12 | 12 |
<p-header [className]="'dashboard-unit-wrapper'"> |
13 | 13 |
<div [className]="'row dashboard-unit'"> |
14 |
<div class="col-md-6">{{ unit.unit.description}}</div>
|
|
15 |
<div class="col-md-6 text-right">
|
|
14 |
<div class="col-md-5">{{ unit.unit.description}}</div>
|
|
15 |
<div class="col-md-7 text-right">
|
|
16 | 16 |
<p-button label="Sensors graph" icon="pi pi-chart-line" [routerLink]="['/dashboard/unit', unit.unit.unitId]"></p-button> |
17 | 17 |
<p-button label="Add sensor" icon="pi pi-cog" (onClick)="addSensor($event, unit.unit)"></p-button> |
18 | 18 |
<p-button label="Edit unit" icon="pi pi-cog" (onClick)="editUnit($event, unit.unit)"></p-button> |
19 |
<p-button label="Delete unit" icon="pi pi-cog" (onClick)="deleteUnit($event, unit.unit)"></p-button> |
|
19 | 20 |
</div> |
20 | 21 |
</div> |
21 | 22 |
</p-header> |
... | ... | |
29 | 30 |
<app-unit-popup *ngIf="editedUnit" [(isVisible)]="showEditUnitPopup" [unit]="editedUnit"></app-unit-popup> |
30 | 31 |
<app-unit-insert-popup [(isVisible)]="showInsertUnitPopup" [phenomenons]="phenomenons"></app-unit-insert-popup> |
31 | 32 |
<app-sensor-insert-popup *ngIf="editedUnit" [unit]="editedUnit" [(isVisible)]="showInsertSensorPopup" [phenomenons]="phenomenons"></app-sensor-insert-popup> |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
<p-confirmDialog [style]="{width: '50vw'}" key="positionDialog" [position]="position" [baseZIndex]="10000" rejectButtonStyleClass="p-button-outlined"></p-confirmDialog> |
Také k dispozici: Unified diff
Re #8788 - Odstranění unit - endpoint
+ OpenAPI definition for deleting unit
+ adding button to delete unit
+ adding confirm dialog if deleting unit