|
19 | 19 | > |
20 | 20 | <ng-container matColumnDef="statusCheck"> |
21 | 21 | <th mat-header-cell *matHeaderCellDef mat-sort-header> |
22 | | - {{ "APPLICATION-TABLE.STATUS" | translate }} |
| 22 | + <div [ngClass]="this.sort.active === 'statusCheck' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 23 | + {{ "APPLICATION-TABLE.STATUS" | translate }} |
| 24 | + </div> |
23 | 25 | <app-table-sort-icon [sortDirection]="getSortDirection('statusCheck')" /> |
24 | 26 | </th> |
25 | 27 | <td mat-cell *matCellDef="let application"> |
|
29 | 31 |
|
30 | 32 | <ng-container matColumnDef="status"> |
31 | 33 | <th mat-header-cell *matHeaderCellDef mat-sort-header> |
32 | | - {{ "APPLICATION-TABLE.STATE" | translate }} |
| 34 | + <div [ngClass]="this.sort.active === 'status' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 35 | + {{ "APPLICATION-TABLE.STATE" | translate }} |
| 36 | + </div> |
33 | 37 | <app-table-sort-icon [sortDirection]="getSortDirection('status')" /> |
34 | 38 | </th> |
35 | 39 | <td mat-cell *matCellDef="let application"> |
36 | | - <app-option-field |
37 | | - [title]="'APPLICATION.STATUS.' + application.status | translate" |
38 | | - [type]="application.status === 'IN-OPERATION' ? 'warring' : ''" |
39 | | - /> |
| 40 | + <div class="options-container"> |
| 41 | + <app-option-field |
| 42 | + [title]="'APPLICATION.STATUS.' + application.status | translate" |
| 43 | + [type]="application.status === 'IN-OPERATION' ? 'warring' : ''" |
| 44 | + /> |
| 45 | + </div> |
40 | 46 | </td> |
41 | 47 | </ng-container> |
42 | 48 |
|
43 | 49 | <ng-container matColumnDef="name"> |
44 | 50 | <th mat-header-cell *matHeaderCellDef mat-sort-header> |
45 | | - {{ "APPLICATION-TABLE.NAME" | translate }} |
| 51 | + <div [ngClass]="this.sort.active === 'name' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 52 | + {{ "APPLICATION-TABLE.NAME" | translate }} |
| 53 | + </div> |
46 | 54 | <app-table-sort-icon [sortDirection]="getSortDirection('name')" /> |
47 | 55 | </th> |
48 | 56 | <td mat-cell *matCellDef="let element" class="name-and-description"> |
|
59 | 67 |
|
60 | 68 | <ng-container matColumnDef="data"> |
61 | 69 | <th mat-header-cell *matHeaderCellDef mat-sort-header> |
62 | | - {{ "APPLICATION-TABLE.CONTROLLED-PROPERTIES" | translate }} |
| 70 | + <div [ngClass]="this.sort.active === 'data' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 71 | + {{ "APPLICATION-TABLE.CONTROLLED-PROPERTIES" | translate }} |
| 72 | + </div> |
63 | 73 | <app-table-sort-icon [sortDirection]="getSortDirection('data')" /> |
64 | 74 | </th> |
65 | 75 | <td mat-cell *matCellDef="let application"> |
|
74 | 84 |
|
75 | 85 | <ng-container matColumnDef="devices"> |
76 | 86 | <th mat-header-cell *matHeaderCellDef mat-sort-header> |
77 | | - {{ "APPLICATION-TABLE.IOT-DEVICES" | translate }} |
| 87 | + <div [ngClass]="this.sort.active === 'devices' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 88 | + {{ "APPLICATION-TABLE.IOT-DEVICES" | translate }} |
| 89 | + </div> |
78 | 90 | <app-table-sort-icon [sortDirection]="getSortDirection('devices')" /> |
79 | 91 | </th> |
80 | 92 | <td mat-cell *matCellDef="let element"> |
|
84 | 96 |
|
85 | 97 | <ng-container matColumnDef="owner"> |
86 | 98 | <th mat-header-cell *matHeaderCellDef mat-sort-header> |
87 | | - {{ "APPLICATION-TABLE.OWNER" | translate }} |
| 99 | + <div [ngClass]="this.sort.active === 'owner' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 100 | + {{ "APPLICATION-TABLE.OWNER" | translate }} |
| 101 | + </div> |
88 | 102 | <app-table-sort-icon [sortDirection]="getSortDirection('owner')" /> |
89 | 103 | </th> |
90 | 104 | <td mat-cell *matCellDef="let application"> |
|
95 | 109 | <!-- Not default columns --> |
96 | 110 |
|
97 | 111 | <ng-container matColumnDef="contactPerson"> |
98 | | - <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
99 | | - {{ "APPLICATION-TABLE.CONTACT-PERSON" | translate }} |
| 112 | + <th mat-header-cell *matHeaderCellDef mat-sort-header> |
| 113 | + <div [ngClass]="this.sort.active === 'contactPerson' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 114 | + {{ "APPLICATION-TABLE.CONTACT-PERSON" | translate }} |
| 115 | + </div> |
100 | 116 | <app-table-sort-icon [sortDirection]="getSortDirection('contactPerson')" /> |
101 | 117 | </th> |
102 | 118 | <td mat-cell *matCellDef="let application"> |
|
105 | 121 | </ng-container> |
106 | 122 |
|
107 | 123 | <ng-container matColumnDef="dataTargets"> |
108 | | - <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
109 | | - {{ "APPLICATION-TABLE.DATA-TARGETS" | translate }} |
| 124 | + <th mat-header-cell *matHeaderCellDef mat-sort-header> |
| 125 | + <div [ngClass]="this.sort.active === 'dataTargets' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 126 | + {{ "APPLICATION-TABLE.DATA-TARGETS" | translate }} |
| 127 | + </div> |
110 | 128 | <app-table-sort-icon [sortDirection]="getSortDirection('dataTargets')" /> |
111 | 129 | </th> |
112 | 130 | <td mat-cell *matCellDef="let application"> |
|
115 | 133 | </ng-container> |
116 | 134 |
|
117 | 135 | <ng-container matColumnDef="openDataDkEnabled"> |
118 | | - <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
119 | | - {{ "APPLICATION-TABLE.OPEN-DATA-DK" | translate }} |
| 136 | + <th mat-header-cell *matHeaderCellDef mat-sort-header> |
| 137 | + <div |
| 138 | + [ngClass]="this.sort.active === 'openDataDkEnabled' ? 'column-title-color' : 'column-title-color-inactive'" |
| 139 | + > |
| 140 | + {{ "APPLICATION-TABLE.OPEN-DATA-DK" | translate }} |
| 141 | + </div> |
120 | 142 | <app-table-sort-icon [sortDirection]="getSortDirection('openDataDkEnabled')" /> |
121 | 143 | </th> |
122 | 144 | <td mat-cell *matCellDef="let application"> |
|
125 | 147 | </ng-container> |
126 | 148 |
|
127 | 149 | <ng-container matColumnDef="personalData"> |
128 | | - <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
129 | | - {{ "APPLICATION-TABLE.PERSONAL-DATA" | translate }} |
| 150 | + <th mat-header-cell *matHeaderCellDef mat-sort-header> |
| 151 | + <div [ngClass]="this.sort.active === 'personalData' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 152 | + {{ "APPLICATION-TABLE.PERSONAL-DATA" | translate }} |
| 153 | + </div> |
130 | 154 | <app-table-sort-icon [sortDirection]="getSortDirection('personalData')" /> |
131 | 155 | </th> |
132 | 156 | <td mat-cell *matCellDef="let application"> |
|
137 | 161 |
|
138 | 162 | <ng-container matColumnDef="startDate"> |
139 | 163 | <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
140 | | - {{ "APPLICATION-TABLE.START-DATE" | translate }} |
| 164 | + <div [ngClass]="this.sort.active === 'startDate' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 165 | + {{ "APPLICATION-TABLE.START-DATE" | translate }} |
| 166 | + </div> |
141 | 167 | <app-table-sort-icon [sortDirection]="getSortDirection('startDate')" /> |
142 | 168 | </th> |
143 | 169 | <td mat-cell *matCellDef="let application"> |
|
147 | 173 |
|
148 | 174 | <ng-container matColumnDef="endDate"> |
149 | 175 | <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
150 | | - {{ "APPLICATION-TABLE.END-DATE" | translate }} |
| 176 | + <div [ngClass]="this.sort.active === 'endDate' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 177 | + {{ "APPLICATION-TABLE.END-DATE" | translate }} |
| 178 | + </div> |
151 | 179 | <app-table-sort-icon [sortDirection]="getSortDirection('endDate')" /> |
152 | 180 | </th> |
153 | 181 | <td mat-cell *matCellDef="let application"> |
|
157 | 185 |
|
158 | 186 | <ng-container matColumnDef="category"> |
159 | 187 | <th mat-header-cell *matHeaderCellDef class="col-1"> |
160 | | - {{ "APPLICATION-TABLE.CATEGORY" | translate }} |
| 188 | + <div [ngClass]="this.sort.active === 'category' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 189 | + {{ "APPLICATION-TABLE.CATEGORY" | translate }} |
| 190 | + </div> |
161 | 191 | <app-table-sort-icon [sortDirection]="getSortDirection('category')" /> |
162 | 192 | </th> |
163 | 193 | <td mat-cell *matCellDef="let application"> |
|
167 | 197 |
|
168 | 198 | <ng-container matColumnDef="deviceTypes"> |
169 | 199 | <th mat-header-cell *matHeaderCellDef class="col-1"> |
170 | | - {{ "APPLICATION-TABLE.DEVICE-TYPES" | translate }} |
| 200 | + <div [ngClass]="this.sort.active === 'deviceTypes' ? 'column-title-color' : 'column-title-color-inactive'"> |
| 201 | + {{ "APPLICATION-TABLE.DEVICE-TYPES" | translate }} |
| 202 | + </div> |
171 | 203 | <app-table-sort-icon [sortDirection]="getSortDirection('deviceTypes')" /> |
172 | 204 | </th> |
173 | 205 | <td mat-cell *matCellDef="let application"> |
|
177 | 209 |
|
178 | 210 | <ng-container matColumnDef="menu"> |
179 | 211 | <th mat-header-cell *matHeaderCellDef class="col-1"></th> |
180 | | - ½ |
| 212 | + |
181 | 213 | <td mat-cell *matCellDef="let element"> |
182 | 214 | <div class="dropdown" *ngIf="element?.id | canEditApplication"> |
183 | 215 | <a |
|
0 commit comments