mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Hide toggled state & counts when selection spans documents not in view
This commit is contained in:
@@ -78,8 +78,15 @@ export class FilterableDropdownComponent {
|
||||
@Output()
|
||||
editingComplete = new EventEmitter()
|
||||
|
||||
_showCounts: boolean = true
|
||||
|
||||
@Input
|
||||
set showCounts(show: boolean) {
|
||||
this._showCounts = show
|
||||
}
|
||||
|
||||
get showCounts(): boolean {
|
||||
return this.type == FilterableDropdownType.Editing || (this.type == FilterableDropdownType.Filtering && this.itemsSelected == 0)
|
||||
return this._showCounts && (this.type == FilterableDropdownType.Editing || (this.type == FilterableDropdownType.Filtering && this.itemsSelected == 0))
|
||||
}
|
||||
|
||||
constructor(private filterPipe: FilterPipe) { }
|
||||
|
Reference in New Issue
Block a user