Add default to empty drag-drop list

This commit is contained in:
shamoon
2024-04-21 07:56:41 -07:00
parent 4207463d20
commit 218488eba6
4 changed files with 29 additions and 8 deletions

View File

@@ -8,6 +8,9 @@
@for (item of selectedItems; track item.id) {
<div class="badge bg-primary" cdkDrag>{{item.name}}</div>
}
@if (selectedItems.length === 0) {
<div class="badge bg-light fst-italic" i18n>{{emptyText}}</div>
}
</div>
</div>
<div class="d-flex flex-row mt-2 align-items-center bg-light p-2">