mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Disable any/all toggle when not needed
This commit is contained in:
		@@ -15,10 +15,10 @@
 | 
				
			|||||||
      <div *ngIf="!editing && multiple" class="list-group-item d-flex">
 | 
					      <div *ngIf="!editing && multiple" class="list-group-item d-flex">
 | 
				
			||||||
        <div class="btn-group btn-group-xs btn-group-toggle flex-fill" ngbRadioGroup [(ngModel)]="selectionModel.logicalOperator" (change)="selectionModel.toggleOperator()">
 | 
					        <div class="btn-group btn-group-xs btn-group-toggle flex-fill" ngbRadioGroup [(ngModel)]="selectionModel.logicalOperator" (change)="selectionModel.toggleOperator()">
 | 
				
			||||||
          <label ngbButtonLabel class="btn btn-outline-primary">
 | 
					          <label ngbButtonLabel class="btn btn-outline-primary">
 | 
				
			||||||
            <input ngbButton type="radio" name="logicalOperator" value="and"> All
 | 
					            <input ngbButton type="radio" name="logicalOperator" value="and" [disabled]="selectionModel.selectionSize() < 2"> All
 | 
				
			||||||
          </label>
 | 
					          </label>
 | 
				
			||||||
          <label ngbButtonLabel class="btn btn-outline-primary">
 | 
					          <label ngbButtonLabel class="btn btn-outline-primary">
 | 
				
			||||||
            <input ngbButton type="radio" name="logicalOperator" value="or"> Any
 | 
					            <input ngbButton type="radio" name="logicalOperator" value="or" [disabled]="selectionModel.selectionSize() < 2"> Any
 | 
				
			||||||
          </label>
 | 
					          </label>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,3 +31,7 @@
 | 
				
			|||||||
    border-bottom-right-radius: 0;
 | 
					    border-bottom-right-radius: 0;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.btn-group > label.disabled {
 | 
				
			||||||
 | 
					  filter: brightness(0.5);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user