mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05: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> | ||||
|     <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"> | ||||
|         {{selectionModel.selectionSize()}}<span class="visually-hidden">selected</span> | ||||
|         {{selectionModel.totalCount}}<span class="visually-hidden">selected</span> | ||||
|       </div> | ||||
|       <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> | ||||
|   | ||||
| @@ -137,6 +137,10 @@ export class FilterableDropdownSelectionModel { | ||||
|     return this.getSelectedItems().length | ||||
|   } | ||||
|  | ||||
|   get totalCount() { | ||||
|     return this.getSelectedItems().length + this.getExcludedItems().length | ||||
|   } | ||||
|  | ||||
|   clear(fireEvent = true) { | ||||
|     this.temporarySelectionStates.clear() | ||||
|     this.temporaryLogicalOperator = this._logicalOperator = 'and' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon