Revize bb7795cd
Přidáno uživatelem Jakub Hlaváč před téměř 4 roky(ů)
src/app/dashboard/components/dashboard.component.ts | ||
---|---|---|
18 | 18 |
|
19 | 19 |
groups: Group[]; |
20 | 20 |
units: Array<{ drivers?: Drivers; generalInfo?: GeneralInfo; holder?: any; lastpos?: Lastpos; sensors?: Array<Sensor>; unit?: Unit }>; |
21 |
showUnitPopup = false; |
|
22 |
showSensorPopup = false; |
|
23 |
editedUnit: Unit; |
|
24 |
editedSensor: Sensor; |
|
21 | 25 |
|
22 | 26 |
constructor( |
23 | 27 |
private groupService: GroupService, |
... | ... | |
42 | 46 |
).toPromise() |
43 | 47 |
} |
44 | 48 |
|
49 |
editUnit($event: MouseEvent, unit: Unit) { |
|
50 |
$event.stopPropagation(); |
|
51 |
this.editedUnit = unit; |
|
52 |
this.showUnitPopup = true; |
|
53 |
} |
|
45 | 54 |
} |
Také k dispozici: Unified diff
Re #8672 - Podpora - Lacha Martin
+ new popup for unit editation/creation