2
2
< ion-content >
3
3
< ion-grid >
4
4
< ion-row class ="ion-justify-content-center ">
5
- < ion-col size ="12 " size-md ="6 " size-lg ="4 ">
5
+ < ion-col size ="12 " size-md ="8 " size-lg ="6 ">
6
6
< ng-container *ngIf ="environment.backend === 'OpenEMS Backend' ">
7
7
< ng-container *ngIf ="noEdges; else showEdges ">
8
8
< ion-card class ="ion-justify-content-center ">
40
40
< ion-grid >
41
41
< ion-row class ="ion-justify-content-center ">
42
42
< ion-col >
43
- < ion-searchbar [(ngModel)] ="filter " (ionChange) ="searchOnChange($event) ">
43
+ < ion-searchbar [(ngModel)] ="query " (ionChange) ="searchOnChange($event) ">
44
44
</ ion-searchbar >
45
45
</ ion-col >
46
46
</ ion-row >
47
47
48
+ <!-- Filter -->
49
+ < ng-container *ngIf ="(service.metadata | async)?.user as user ">
50
+ < oe-filter (setSearchParams) ="searchOnChange($event) "
51
+ *ngIf ="user.globalRole === 'admin' "> </ oe-filter >
52
+ </ ng-container >
53
+
48
54
< ion-row class ="ion-justify-content-center ">
49
55
< ion-col >
50
56
< ion-list lines ="full ">
@@ -68,17 +74,17 @@ <h2 class="ion-text-wrap">{{ edge.comment }}</h2>
68
74
< ng-container *ngIf ="environment.backend === 'OpenEMS Backend' ">
69
75
< p > ID: {{ edge.id }}</ p >
70
76
< p class ="ion-text-wrap ">
71
- < ion-text translate > Index.type </ ion-text > {{
77
+ < ion-text translate > Index.TYPE </ ion-text > : {{
72
78
edge.producttype }}
73
79
</ p >
74
80
</ ng-container >
75
81
< p class ="ion-text-wrap ">
76
- < ion-text translate > Index.loggedInAs </ ion-text > {{
77
- edge.getRoleString() }}.
82
+ < ion-text translate > Index.LOGGED_IN_AS </ ion-text > : {{
83
+ edge.getRoleString() }}
78
84
</ p >
79
85
</ ion-label >
80
- < ion-icon slot =" end " name =" play-outline " color =" primary " > </ ion-icon >
81
- </ ion-item >
86
+ < oe-sum-state [sumState] =" edge.sumState "
87
+ [isEdgeOnline] =" edge.isOnline " > </ oe-sum-state > </ ion-item >
82
88
</ ng-container >
83
89
< ion-infinite-scroll (ionInfinite) ="doInfinite($event) "
84
90
[disabled] ="limitReached ">
0 commit comments