Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

}

.clear-button {
.line-end-button {
font-size: larger;
font-weight: 450;
padding: 8px;
Expand Down Expand Up @@ -60,6 +60,11 @@
padding: 1px;
}

.refresh-icon {
cursor: pointer;
padding-right: 5px;
}

::ng-deep .mat-datepicker-toggle-default-icon {
color: lightgray !important;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
</div>

<div class="filter-input">
<select class="search-text-field" [(ngModel)]="filters.type" (ngModelChange)="onMenuItemClicked()">
<select class="search-text-field" [(ngModel)]="filters.type" (ngModelChange)="onEmitFilters()">
<option [value]="NO_FILTER">Filter type...</option>
<option *ngFor="let t of types">{{ t }}</option>
</select>
</div>

<div class="filter-input">
<select class="search-text-field" [(ngModel)]="filters.category" (ngModelChange)="onMenuItemClicked()">
<select class="search-text-field" [(ngModel)]="filters.category" (ngModelChange)="onEmitFilters()">
<option [value]="NO_FILTER">Filter category...</option>
<option *ngFor="let c of categories">{{ c }}</option>
</select>
Expand All @@ -59,11 +59,12 @@

<div class="filter-clear">
<button
class="big-button clear-button"
class="big-button line-end-button"
(click)="onClearFilter()"
[ngClass]="{'no-filter-button': !isAnyFilterSelected()}"
[disabled]="!isAnyFilterSelected()">
Clear Filters
</button>
</div>
<mat-icon fontIcon="refresh" class="refresh-icon" (click)="onEmitFilters()" title="Refresh with filters"/>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class FiltersComponent implements OnInit {
this.setCurrentMonth(true);
}

onMenuItemClicked(): void {
onEmitFilters(): void {
this.emitFilters();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { TransactionService } from '../services/transaction.service';
CommonModule,
ImportComponent,
FiltersComponent,
TransactionHeadersComponent,
TransactionItemComponent,
FilterTransactionsPipe
]
Expand Down
Loading