2017-10-06 20:11:18 +02:00
|
|
|
<div class="select-list">
|
2018-07-08 16:46:13 +02:00
|
|
|
<cc-list-filter
|
2019-10-01 13:51:03 +02:00
|
|
|
[filterButtons]="[{label: fraction.ARF, value: 'ARF'},
|
|
|
|
{label: fraction.SWORD, value: 'SWORD'},
|
|
|
|
{label: fraction.BLUFOR, value: 'BLUFOR'},
|
2018-07-08 16:46:13 +02:00
|
|
|
{label: fraction.OPFOR, value: 'OPFOR'},
|
2018-10-04 11:48:22 +02:00
|
|
|
{label: 'decorations.list.filter.global', value: 'GLOBAL'}]"
|
|
|
|
[addButton]="{svgIcon: 'add', tooltip: 'decorations.list.button.add'}"
|
2018-07-08 16:46:13 +02:00
|
|
|
(executeSearch)="filterDecorations($event)"
|
|
|
|
(openAddFrom)="openNewDecorationForm()">
|
|
|
|
</cc-list-filter>
|
2017-05-10 11:04:06 +02:00
|
|
|
|
2018-07-08 17:59:11 +02:00
|
|
|
<cc-list-search [searchTerm]="searchTerm"
|
|
|
|
(searchTermStream)="initObservable($event)"
|
|
|
|
(executeSearch)="filterDecorations()">
|
|
|
|
</cc-list-search>
|
2017-05-10 11:04:06 +02:00
|
|
|
|
2018-07-08 17:59:11 +02:00
|
|
|
<decoration-item *ngFor="let decoration of decorations$ | async"
|
|
|
|
[decoration]="decoration"
|
|
|
|
(decorationDelete)="deleteDecoration(decoration)"
|
|
|
|
(decorationSelected)="selectDecoration($event)"
|
|
|
|
[selected]="decoration._id == selectedDecorationId">
|
|
|
|
</decoration-item>
|
2017-05-10 11:04:06 +02:00
|
|
|
</div>
|