Revize 6bd78e65
Přidáno uživatelem Jakub Hlaváč před více než 3 roky(ů)
src/app/dashboard/components/dashboard.component.ts | ||
---|---|---|
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
editUnitPopup($event: MouseEvent, unit: Unit) { |
77 |
$event.stopPropagation(); |
|
78 | 77 |
this.editedUnit = unit; |
79 | 78 |
this.showEditUnitPopup = true; |
80 | 79 |
} |
81 | 80 |
|
82 | 81 |
insertSensorPopup($event: any, unit: Unit) { |
83 |
$event.stopPropagation(); |
|
84 | 82 |
this.showInsertSensorPopup = true; |
85 | 83 |
this.editedUnit = unit; |
86 | 84 |
} |
87 | 85 |
|
88 | 86 |
deleteUnit($event: any, unit: Unit) { |
89 |
$event.stopPropagation(); |
|
90 | 87 |
this.confirmationService.confirm({ |
91 | 88 |
message: 'Do you want to delete this unit?', |
92 | 89 |
header: 'Delete Unit Confirmation', |
... | ... | |
121 | 118 |
$event.stopPropagation(); |
122 | 119 |
this.items = [ |
123 | 120 |
{label: 'Edit unit', icon: 'pi pi-cog', command: () => { |
124 |
event.stopPropagation(); |
|
125 | 121 |
this.editUnitPopup($event, unit); |
126 | 122 |
}}, |
127 | 123 |
{label: 'Insert position', icon: 'pi pi-cog', command: () => { |
128 |
event.stopPropagation(); |
|
129 | 124 |
this.insertPosition($event, unit); |
130 | 125 |
}}, |
131 | 126 |
{label: 'Delete unit', icon: 'pi pi-times', command: () => { |
132 |
event.stopPropagation(); |
|
133 | 127 |
this.deleteUnit($event, unit); |
128 |
}}, |
|
129 |
{label: 'Add sensor', icon: 'pi pi-cog', command: () => { |
|
130 |
this.insertSensorPopup($event, unit); |
|
134 | 131 |
}} |
135 | 132 |
] |
136 | 133 |
} |
Také k dispozici: Unified diff
Re #8915 - Zapracování požadavků ze schůzky