Skip to content

Commit

Permalink
fix: show filter input even if disableHeader true
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Mar 29, 2019
1 parent 7bd3aa2 commit 9ea65ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/data/src/lib/asset-list/asset-list.component.html
@@ -1,5 +1,5 @@
<div class="ec-list">
<ec-list-header [list]="list" [selection]="selection" *ngIf="showHeader()"></ec-list-header>
<ec-list-header [list]="list" [selection]="selection"></ec-list-header>
<div class="ec-list-body">
<div class="ec-list-group" *ngFor="let group of list?.groups">
<div class="ec-list-group-header" *ngIf="group.value">
Expand Down
Expand Up @@ -41,7 +41,7 @@
<div *ngIf="filterFormConfig">
<ec-form [config]="filterFormConfig" [value]="list?.config?.filter" [empty]="true" #filterForm
(ready)="initFilterForm($event)" [lazy]="true"></ec-form>
<div class="ec-list-header">
<div class="ec-list-header" *ngIf="!list?.config?.disableHeader">
<div class="ec-list-cell ec-list-item__selector" *ngIf="list?.config?.selectMode&&!list?.isEmpty()">
<input type="checkbox" (click)="selection?.toggleAll(list?.page)" [checked]="selection?.hasAll(list?.page)"
[disabled]="selection?.config?.solo">
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/lib/list/list.component.html.ts
@@ -1,5 +1,5 @@
export const listTemplate = `<div class="ec-list">
<ec-list-header [list]="list" [selection]="selection" *ngIf="showHeader()"></ec-list-header>
<ec-list-header [list]="list" [selection]="selection"></ec-list-header>
<div class="ec-list-body">
<div class="ec-list-group" *ngFor="let group of list?.groups">
<div class="ec-list-group-header" *ngIf="group.value" (click)="selection?.toggleAll(listItems?.items)">
Expand Down
1 change: 1 addition & 0 deletions src/app/crud/crud-demo.component.ts
Expand Up @@ -10,6 +10,7 @@ import { ResourceConfig } from '@ec.components/data';
export class CrudDemoComponent {
public muffinConfig = {
defaultFilter: 'name',
disableHeader: false,
develop: true,
singularLabel: 'Muffin',
createLabel: 'Neuer Muffin', size: 15,
Expand Down

0 comments on commit 9ea65ad

Please sign in to comment.