-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(edit-content) fix failing tests #28879
- Loading branch information
Showing
6 changed files
with
101 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 36 additions & 36 deletions
72
...d/components/dot-category-field-search-list/dot-category-field-search-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
<div #tableContainer class="category-field__search-list"> | ||
@if (!isLoading()) { | ||
<p-table | ||
[scrollHeight]="$scrollHeight()" | ||
[scrollable]="true" | ||
[value]="$searchResults()" | ||
dataKey="key" | ||
selectionMode="multiple" | ||
[(selection)]="itemsSelected" | ||
(onHeaderCheckboxToggle)="onHeaderCheckboxToggle($event)" | ||
(onRowSelect)="onSelectItem($event)" | ||
(onRowUnselect)="onRemoveItem($event)" | ||
styleClass="dotTable "> | ||
<ng-template pTemplate="header"> | ||
<tr> | ||
<th> | ||
<p-tableHeaderCheckbox style="width: 4rem"></p-tableHeaderCheckbox> | ||
</th> | ||
<th>{{ 'edit.content.category-field.search.name' | dm }}</th> | ||
<th>{{ 'edit.content.category-field.search.assignee' | dm }}</th> | ||
</tr> | ||
</ng-template> | ||
<p-table | ||
[scrollHeight]="$scrollHeight()" | ||
[scrollable]="true" | ||
[value]="$searchResults()" | ||
dataKey="key" | ||
selectionMode="multiple" | ||
[(selection)]="itemsSelected" | ||
(onHeaderCheckboxToggle)="onHeaderCheckboxToggle($event)" | ||
(onRowSelect)="onSelectItem($event)" | ||
(onRowUnselect)="onRemoveItem($event)" | ||
styleClass="dotTable "> | ||
<ng-template pTemplate="header"> | ||
<tr> | ||
<th> | ||
<p-tableHeaderCheckbox style="width: 4rem"></p-tableHeaderCheckbox> | ||
</th> | ||
<th>{{ 'edit.content.category-field.search.name' | dm }}</th> | ||
<th>{{ 'edit.content.category-field.search.assignee' | dm }}</th> | ||
</tr> | ||
</ng-template> | ||
|
||
<ng-template let-category pTemplate="body"> | ||
<tr> | ||
<td> | ||
<p-tableCheckbox [value]="category"></p-tableCheckbox> | ||
</td> | ||
<td>{{ category.value }}</td> | ||
<td>{{ category.path }}</td> | ||
</tr> | ||
</ng-template> | ||
</p-table> | ||
<ng-template let-category pTemplate="body"> | ||
<tr> | ||
<td> | ||
<p-tableCheckbox [value]="category"></p-tableCheckbox> | ||
</td> | ||
<td>{{ category.value }}</td> | ||
<td>{{ category.path }}</td> | ||
</tr> | ||
</ng-template> | ||
</p-table> | ||
} @else { | ||
<dot-table-skeleton | ||
[columns]="[ | ||
'', | ||
'edit.content.category-field.search.name' | dm, | ||
'edit.content.category-field.search.assignee' | dm | ||
]" /> | ||
<dot-table-skeleton | ||
[columns]="[ | ||
'', | ||
'edit.content.category-field.search.name' | dm, | ||
'edit.content.category-field.search.assignee' | dm | ||
]" /> | ||
} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
...lib/fields/dot-edit-content-category-field/dot-edit-content-category-field.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters