|
17 | 17 | matSortDirection="asc" |
18 | 18 | (matSortChange)="announceSortChange($event)" |
19 | 19 | > |
20 | | - <ng-container matColumnDef="status"> |
21 | | - <th mat-header-cell *matHeaderCellDef mat-sort-header arrowPosition=""> |
| 20 | + <ng-container matColumnDef="statusCheck"> |
| 21 | + <th mat-header-cell *matHeaderCellDef mat-sort-header> |
22 | 22 | {{ "APPLICATION-TABLE.STATUS" | translate }} |
23 | | - <app-table-sort-icon [sortDirection]="getSortDirection('status')" /> |
| 23 | + <app-table-sort-icon [sortDirection]="getSortDirection('statusCheck')" /> |
24 | 24 | </th> |
25 | | - <td mat-cell *matCellDef="let application" class="status-container"> |
| 25 | + <td mat-cell *matCellDef="let application"> |
26 | 26 | <app-status-icon [iconType]="application.statusCheck" /> |
27 | 27 | </td> |
28 | 28 | </ng-container> |
29 | 29 |
|
30 | | - <ng-container matColumnDef="state"> |
| 30 | + <ng-container matColumnDef="status"> |
31 | 31 | <th mat-header-cell *matHeaderCellDef mat-sort-header> |
32 | 32 | {{ "APPLICATION-TABLE.STATE" | translate }} |
33 | | - <app-table-sort-icon [sortDirection]="getSortDirection('state')" /> |
| 33 | + <app-table-sort-icon [sortDirection]="getSortDirection('status')" /> |
34 | 34 | </th> |
35 | 35 | <td mat-cell *matCellDef="let application"> |
36 | 36 | <app-option-field |
|
45 | 45 | {{ "APPLICATION-TABLE.NAME" | translate }} |
46 | 46 | <app-table-sort-icon [sortDirection]="getSortDirection('name')" /> |
47 | 47 | </th> |
48 | | - <td mat-cell *matCellDef="let element"> |
| 48 | + <td mat-cell *matCellDef="let element" class="name-and-description"> |
49 | 49 | <div class="name-and-description"> |
50 | 50 | <div class="application-name"> |
51 | 51 | {{ element.name }} |
|
59 | 59 |
|
60 | 60 | <ng-container matColumnDef="data"> |
61 | 61 | <th mat-header-cell *matHeaderCellDef mat-sort-header> |
62 | | - {{ "APPLICATION-TABLE.DATA" | translate }} |
| 62 | + {{ "APPLICATION-TABLE.CONTROLLED-PROPERTIES" | translate }} |
63 | 63 | <app-table-sort-icon [sortDirection]="getSortDirection('data')" /> |
64 | 64 | </th> |
65 | 65 | <td mat-cell *matCellDef="let application"> |
66 | 66 | <!-- TODO:: add @for when data is found --> |
67 | 67 | <div class="options-container"> |
68 | | - <app-option-field [title]="'APPLICATION.STATUS.' + application.status | translate" /> |
69 | | - <app-option-field [title]="'APPLICATION.STATUS.' + application.status | translate" /> |
70 | | - <app-option-field [title]="'APPLICATION.STATUS.' + application.status | translate" /> |
71 | | - <app-option-field [title]="'APPLICATION.STATUS.' + application.status | translate" /> |
| 68 | + @for (property of application.controlledProperties; track $index) { |
| 69 | + <app-option-field [title]="property.type" /> |
| 70 | + } |
72 | 71 | </div> |
73 | 72 | </td> |
74 | 73 | </ng-container> |
|
93 | 92 | </td> |
94 | 93 | </ng-container> |
95 | 94 |
|
96 | | - <ng-container matColumnDef="action"> |
97 | | - <th mat-header-cell *matHeaderCellDef></th> |
98 | | - </ng-container> |
99 | | - |
100 | | - <!-- No used |
| 95 | + <!-- Not default columns --> |
101 | 96 |
|
102 | 97 | <ng-container matColumnDef="contactPerson"> |
103 | 98 | <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
104 | 99 | {{ "APPLICATION-TABLE.CONTACT-PERSON" | translate }} |
| 100 | + <app-table-sort-icon [sortDirection]="getSortDirection('contactPerson')" /> |
105 | 101 | </th> |
106 | 102 | <td mat-cell *matCellDef="let application"> |
107 | 103 | {{ application.contactPerson ?? "-" }} |
|
111 | 107 | <ng-container matColumnDef="dataTargets"> |
112 | 108 | <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
113 | 109 | {{ "APPLICATION-TABLE.DATA-TARGETS" | translate }} |
| 110 | + <app-table-sort-icon [sortDirection]="getSortDirection('dataTargets')" /> |
114 | 111 | </th> |
115 | 112 | <td mat-cell *matCellDef="let application"> |
116 | 113 | {{ application?.dataTargets?.length ?? 0 }} |
|
120 | 117 | <ng-container matColumnDef="openDataDkEnabled"> |
121 | 118 | <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
122 | 119 | {{ "APPLICATION-TABLE.OPEN-DATA-DK" | translate }} |
| 120 | + <app-table-sort-icon [sortDirection]="getSortDirection('openDataDkEnabled')" /> |
123 | 121 | </th> |
124 | 122 | <td mat-cell *matCellDef="let application"> |
125 | 123 | {{ isOpenDataDK(application.dataTargets) | yesNo }} |
|
129 | 127 | <ng-container matColumnDef="personalData"> |
130 | 128 | <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
131 | 129 | {{ "APPLICATION-TABLE.PERSONAL-DATA" | translate }} |
| 130 | + <app-table-sort-icon [sortDirection]="getSortDirection('personalData')" /> |
132 | 131 | </th> |
133 | 132 | <td mat-cell *matCellDef="let application"> |
134 | 133 | <fa-icon *ngIf="application.personalData" [icon]="faFlagIcon" class="flag-icon"></fa-icon> |
|
139 | 138 | <ng-container matColumnDef="startDate"> |
140 | 139 | <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
141 | 140 | {{ "APPLICATION-TABLE.START-DATE" | translate }} |
| 141 | + <app-table-sort-icon [sortDirection]="getSortDirection('startDate')" /> |
142 | 142 | </th> |
143 | 143 | <td mat-cell *matCellDef="let application"> |
144 | 144 | {{ (application.startDate | dateOnly) ?? "-" }} |
|
148 | 148 | <ng-container matColumnDef="endDate"> |
149 | 149 | <th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1"> |
150 | 150 | {{ "APPLICATION-TABLE.END-DATE" | translate }} |
| 151 | + <app-table-sort-icon [sortDirection]="getSortDirection('endDate')" /> |
151 | 152 | </th> |
152 | 153 | <td mat-cell *matCellDef="let application"> |
153 | 154 | {{ (application.endDate | dateOnly) ?? "-" }} |
|
157 | 158 | <ng-container matColumnDef="category"> |
158 | 159 | <th mat-header-cell *matHeaderCellDef class="col-1"> |
159 | 160 | {{ "APPLICATION-TABLE.CATEGORY" | translate }} |
| 161 | + <app-table-sort-icon [sortDirection]="getSortDirection('category')" /> |
160 | 162 | </th> |
161 | 163 | <td mat-cell *matCellDef="let application"> |
162 | 164 | {{ application.category ?? "-" }} |
163 | 165 | </td> |
164 | 166 | </ng-container> |
165 | 167 |
|
166 | | - <ng-container matColumnDef="controlledProperties"> |
167 | | - <th mat-header-cell *matHeaderCellDef class="col-1"> |
168 | | - {{ "APPLICATION-TABLE.CONTROLLED-PROPERTIES" | translate }} |
169 | | - </th> |
170 | | - <td mat-cell *matCellDef="let application"> |
171 | | - {{ mapControlledProperties(application.controlledProperties) ?? "-" }} |
172 | | - </td> |
173 | | - </ng-container> |
174 | | -
|
175 | 168 | <ng-container matColumnDef="deviceTypes"> |
176 | 169 | <th mat-header-cell *matHeaderCellDef class="col-1"> |
177 | 170 | {{ "APPLICATION-TABLE.DEVICE-TYPES" | translate }} |
| 171 | + <app-table-sort-icon [sortDirection]="getSortDirection('deviceTypes')" /> |
178 | 172 | </th> |
179 | 173 | <td mat-cell *matCellDef="let application"> |
180 | 174 | {{ mapDeviceTypes(application.deviceTypes) ?? "-" }} |
181 | 175 | </td> |
182 | | - </ng-container> --> |
| 176 | + </ng-container> |
183 | 177 |
|
184 | 178 | <ng-container matColumnDef="menu"> |
185 | 179 | <th mat-header-cell *matHeaderCellDef class="col-1"></th> |
| 180 | + ½ |
186 | 181 | <td mat-cell *matCellDef="let element"> |
187 | 182 | <div class="dropdown" *ngIf="element?.id | canEditApplication"> |
188 | 183 | <a |
|
0 commit comments