AW-1426 Remove default component if none found
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit

This commit is contained in:
Peter Bastiani 2020-08-11 14:11:51 +02:00
parent 3dd19c702f
commit 3b3c2768d3
2 changed files with 12 additions and 12 deletions

View File

@ -39,15 +39,15 @@ export abstract class AbstractItemWidgetComponent {
} }
} }
@Injectable() // @Injectable()
@Component({ // @Component({
selector: 'fm-map-item-list-item', // selector: 'fm-map-item-list-item',
templateUrl: './item-list-item.component.html', // templateUrl: './item-list-item.component.html',
styleUrls: ['./item-list-item.component.scss'] // styleUrls: ['./item-list-item.component.scss']
}) // })
export class ItemListItemComponent extends AbstractItemListItemComponent { // export class ItemListItemComponent extends AbstractItemListItemComponent {
constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService) { // constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService) {
super(store, itemTypeService); // super(store, itemTypeService);
} // }
} // }

View File

@ -1,5 +1,5 @@
<div *ngIf="items;let items" class="widget-container pt-0"> <div *ngIf="items;let items" class="widget-container pt-0">
<div class="widget" [class.d-none]="item.name == 'Trijntje'" *ngFor="let item of items" (click)="handleItemClick(item)"> <div class="widget" *ngFor="let item of items" (click)="handleItemClick(item)">
<div class="content"> <div class="content">
<fm-map-item-list-item-container [item]="item" class="item-container"></fm-map-item-list-item-container> <fm-map-item-list-item-container [item]="item" class="item-container"></fm-map-item-list-item-container>
</div> </div>