faEdit for Devices
This commit is contained in:
parent
3d125557e1
commit
6b58d896b4
@ -5,7 +5,7 @@
|
||||
{{device.title}}
|
||||
</div>
|
||||
<div class="edit" [routerLink]="['/Device', {id: device.id}]">
|
||||
Bearbeiten
|
||||
<fa-icon [icon]="faEdit"></fa-icon>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<img alt="An" class="control" src="assets/switch-on.svg" (click)="setSwitchState(device, true)"/>
|
||||
@ -17,7 +17,7 @@
|
||||
{{device.title}}
|
||||
</div>
|
||||
<div class="edit" [routerLink]="['/Device', {id: device.id}]">
|
||||
Bearbeiten
|
||||
<fa-icon [icon]="faEdit"></fa-icon>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<div class="control button" (click)="setShutterPercent(device, 0)">
|
||||
|
||||
@ -2,6 +2,7 @@ import {Component, OnInit} from '@angular/core';
|
||||
import {DeviceService} from "../../api/device/device.service";
|
||||
import {PropertyService} from "../../api/property/property.service";
|
||||
import {Device, DeviceShutter, DeviceSwitch} from "../../api/device/Device";
|
||||
import {faEdit} from '@fortawesome/free-regular-svg-icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-device-list',
|
||||
@ -12,6 +13,8 @@ export class DeviceListComponent implements OnInit {
|
||||
|
||||
readonly Device = Device;
|
||||
|
||||
readonly faEdit = faEdit;
|
||||
|
||||
devices: Device[] = [];
|
||||
|
||||
createType: string = "DeviceSwitch";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user