mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
addresses #104
This commit is contained in:
parent
3f05fe45bb
commit
c4a939dbcc
@ -44,7 +44,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btn-group ml-2">
|
<div class="btn-group ml-2">
|
||||||
|
|
||||||
<button type="button" class="btn btn-sm btn-outline-primary" (click)="showFilter=!showFilter">
|
<button type="button" class="btn btn-sm" [ngClass]="isFiltered ? 'btn-primary' : 'btn-outline-primary'" (click)="showFilter=!showFilter">
|
||||||
<svg class="toolbaricon" fill="currentColor">
|
<svg class="toolbaricon" fill="currentColor">
|
||||||
<use xlink:href="assets/bootstrap-icons.svg#funnel" />
|
<use xlink:href="assets/bootstrap-icons.svg#funnel" />
|
||||||
</svg>
|
</svg>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex justify-content-between align-items-center">
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
<p>{{list.collectionSize || 0}} document(s)</p>
|
<p>{{list.collectionSize || 0}} document(s) <span *ngIf="isFiltered">(filtered)</span></p>
|
||||||
<ngb-pagination [pageSize]="list.currentPageSize" [collectionSize]="list.collectionSize" [(page)]="list.currentPage" [maxSize]="5"
|
<ngb-pagination [pageSize]="list.currentPageSize" [collectionSize]="list.collectionSize" [(page)]="list.currentPage" [maxSize]="5"
|
||||||
[rotate]="true" (pageChange)="list.reload()" aria-label="Default pagination"></ngb-pagination>
|
[rotate]="true" (pageChange)="list.reload()" aria-label="Default pagination"></ngb-pagination>
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,6 +32,10 @@ export class DocumentListComponent implements OnInit {
|
|||||||
filterRules: FilterRule[] = []
|
filterRules: FilterRule[] = []
|
||||||
showFilter = false
|
showFilter = false
|
||||||
|
|
||||||
|
get isFiltered() {
|
||||||
|
return this.list.filterRules?.length > 0
|
||||||
|
}
|
||||||
|
|
||||||
getTitle() {
|
getTitle() {
|
||||||
return this.list.savedViewTitle || "Documents"
|
return this.list.savedViewTitle || "Documents"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user