mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Include excluded items in dropdown count
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
				
			|||||||
    <div class="d-none d-sm-inline"> {{title}}</div>
 | 
					    <div class="d-none d-sm-inline"> {{title}}</div>
 | 
				
			||||||
    <ng-container *ngIf="!editing && selectionModel.selectionSize() > 0">
 | 
					    <ng-container *ngIf="!editing && selectionModel.selectionSize() > 0">
 | 
				
			||||||
      <div *ngIf="multiple" class="position-absolute top-0 start-100 translate-middle badge bg-secondary border border-light text-light rounded-pill">
 | 
					      <div *ngIf="multiple" class="position-absolute top-0 start-100 translate-middle badge bg-secondary border border-light text-light rounded-pill">
 | 
				
			||||||
        {{selectionModel.selectionSize()}}<span class="visually-hidden">selected</span>
 | 
					        {{selectionModel.totalCount}}<span class="visually-hidden">selected</span>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div *ngIf="!multiple" class="position-absolute top-0 start-100 p-2 translate-middle badge bg-secondary border border-light rounded-circle">
 | 
					      <div *ngIf="!multiple" class="position-absolute top-0 start-100 p-2 translate-middle badge bg-secondary border border-light rounded-circle">
 | 
				
			||||||
        <span class="visually-hidden">selected</span>
 | 
					        <span class="visually-hidden">selected</span>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -137,6 +137,10 @@ export class FilterableDropdownSelectionModel {
 | 
				
			|||||||
    return this.getSelectedItems().length
 | 
					    return this.getSelectedItems().length
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  get totalCount() {
 | 
				
			||||||
 | 
					    return this.getSelectedItems().length + this.getExcludedItems().length
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  clear(fireEvent = true) {
 | 
					  clear(fireEvent = true) {
 | 
				
			||||||
    this.temporarySelectionStates.clear()
 | 
					    this.temporarySelectionStates.clear()
 | 
				
			||||||
    this.temporaryLogicalOperator = this._logicalOperator = 'and'
 | 
					    this.temporaryLogicalOperator = this._logicalOperator = 'and'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user