mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
remove "Remove All"
This commit is contained in:
parent
a2ad62b310
commit
bf79b252ad
@ -19,12 +19,6 @@
|
|||||||
<input class="form-control" type="text" [(ngModel)]="filterText" placeholder="Filter {{title}}" (keyup.enter)="listFilterEnter()" #listFilterTextInput>
|
<input class="form-control" type="text" [(ngModel)]="filterText" placeholder="Filter {{title}}" (keyup.enter)="listFilterEnter()" #listFilterTextInput>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button *ngIf="showRemoveAll" role="menuitem" class="list-group-item list-group-item-action d-flex align-items-center p-2 border-top-0 border-left-0 border-right-0 border-bottom" (click)="removeAll.next()">
|
|
||||||
<svg class="toolbaricon text-danger" fill="currentColor">
|
|
||||||
<use xlink:href="assets/bootstrap-icons.svg#x" />
|
|
||||||
</svg>
|
|
||||||
<small class="my-1">Remove All</small>
|
|
||||||
</button>
|
|
||||||
<div *ngIf="toggleableItems" class="items">
|
<div *ngIf="toggleableItems" class="items">
|
||||||
<ng-container *ngFor="let toggleableItem of toggleableItems | filter: filterText">
|
<ng-container *ngFor="let toggleableItem of toggleableItems | filter: filterText">
|
||||||
<app-toggleable-dropdown-button [toggleableItem]="toggleableItem" [showCounts]="showCounts" (toggle)="toggleItem($event)"></app-toggleable-dropdown-button>
|
<app-toggleable-dropdown-button [toggleableItem]="toggleableItem" [showCounts]="showCounts" (toggle)="toggleItem($event)"></app-toggleable-dropdown-button>
|
||||||
|
@ -67,18 +67,12 @@ export class FilterableDropdownComponent {
|
|||||||
@Input()
|
@Input()
|
||||||
singular: boolean = false
|
singular: boolean = false
|
||||||
|
|
||||||
@Input()
|
|
||||||
showRemoveAll: boolean = false
|
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
toggle = new EventEmitter()
|
toggle = new EventEmitter()
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
open = new EventEmitter()
|
open = new EventEmitter()
|
||||||
|
|
||||||
@Output()
|
|
||||||
removeAll = new EventEmitter()
|
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
editingComplete = new EventEmitter()
|
editingComplete = new EventEmitter()
|
||||||
|
|
||||||
|
@ -33,27 +33,21 @@
|
|||||||
[toggleableItems]="tagsToggleableItems"
|
[toggleableItems]="tagsToggleableItems"
|
||||||
[type]="dropdownTypes.Editing"
|
[type]="dropdownTypes.Editing"
|
||||||
[showCounts]="!selectionSpansPages"
|
[showCounts]="!selectionSpansPages"
|
||||||
[showRemoveAll]="selectionSpansPages"
|
|
||||||
(open)="tagsDropdownOpen()"
|
(open)="tagsDropdownOpen()"
|
||||||
(removeAll)="setTags(null)"
|
|
||||||
(editingComplete)="setTags($event)">
|
(editingComplete)="setTags($event)">
|
||||||
</app-filterable-dropdown>
|
</app-filterable-dropdown>
|
||||||
<app-filterable-dropdown class="mr-2 mr-md-3" title="Correspondent" icon="person-fill" singular="true"
|
<app-filterable-dropdown class="mr-2 mr-md-3" title="Correspondent" icon="person-fill" singular="true"
|
||||||
[toggleableItems]="correspondentsToggleableItems"
|
[toggleableItems]="correspondentsToggleableItems"
|
||||||
[type]="dropdownTypes.Editing"
|
[type]="dropdownTypes.Editing"
|
||||||
[showCounts]="!selectionSpansPages"
|
[showCounts]="!selectionSpansPages"
|
||||||
[showRemoveAll]="selectionSpansPages"
|
|
||||||
(open)="correspondentsDropdownOpen()"
|
(open)="correspondentsDropdownOpen()"
|
||||||
(removeAll)="setCorrespondents(null)"
|
|
||||||
(editingComplete)="setCorrespondents($event)">
|
(editingComplete)="setCorrespondents($event)">
|
||||||
</app-filterable-dropdown>
|
</app-filterable-dropdown>
|
||||||
<app-filterable-dropdown class="mr-2 mr-md-3" title="Document Type" icon="file-earmark-fill" singular="true"
|
<app-filterable-dropdown class="mr-2 mr-md-3" title="Document Type" icon="file-earmark-fill" singular="true"
|
||||||
[toggleableItems]="documentTypesToggleableItems"
|
[toggleableItems]="documentTypesToggleableItems"
|
||||||
[type]="dropdownTypes.Editing"
|
[type]="dropdownTypes.Editing"
|
||||||
[showCounts]="!selectionSpansPages"
|
[showCounts]="!selectionSpansPages"
|
||||||
[showRemoveAll]="selectionSpansPages"
|
|
||||||
(open)="documentTypesDropdownOpen()"
|
(open)="documentTypesDropdownOpen()"
|
||||||
(removeAll)="setDocumentTypes(null)"
|
|
||||||
(editingComplete)="setDocumentTypes($event)">
|
(editingComplete)="setDocumentTypes($event)">
|
||||||
</app-filterable-dropdown>
|
</app-filterable-dropdown>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user