mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
remove "selectionSpansPages"
This commit is contained in:
parent
a283b815ef
commit
c2a47ca4b1
@ -39,15 +39,10 @@ export class BulkEditorComponent {
|
|||||||
|
|
||||||
dropdownTypes = FilterableDropdownType
|
dropdownTypes = FilterableDropdownType
|
||||||
|
|
||||||
get selectionSpansPages(): boolean {
|
|
||||||
return this.documentList.selected.size > this.documentList.documents.length || !Array.from(this.documentList.selected).every(sd => this.documentList.documents.find(d => d.id == sd))
|
|
||||||
}
|
|
||||||
|
|
||||||
private _tagsToggleableItems: ToggleableItem[]
|
private _tagsToggleableItems: ToggleableItem[]
|
||||||
get tagsToggleableItems(): ToggleableItem[] {
|
get tagsToggleableItems(): ToggleableItem[] {
|
||||||
let tagsToggleableItems = []
|
let tagsToggleableItems = []
|
||||||
let selectedDocuments: PaperlessDocument[] = this.documentList.documents.filter(d => this.documentList.selected.has(d.id))
|
let selectedDocuments: PaperlessDocument[] = this.documentList.documents.filter(d => this.documentList.selected.has(d.id))
|
||||||
if (this.selectionSpansPages) selectedDocuments = []
|
|
||||||
|
|
||||||
this.tags?.forEach(t => {
|
this.tags?.forEach(t => {
|
||||||
let selectedDocumentsWithTag: PaperlessDocument[] = selectedDocuments.filter(d => d.tags.includes(t.id))
|
let selectedDocumentsWithTag: PaperlessDocument[] = selectedDocuments.filter(d => d.tags.includes(t.id))
|
||||||
@ -64,7 +59,6 @@ export class BulkEditorComponent {
|
|||||||
get correspondentsToggleableItems(): ToggleableItem[] {
|
get correspondentsToggleableItems(): ToggleableItem[] {
|
||||||
let correspondentsToggleableItems = []
|
let correspondentsToggleableItems = []
|
||||||
let selectedDocuments: PaperlessDocument[] = this.documentList.documents.filter(d => this.documentList.selected.has(d.id))
|
let selectedDocuments: PaperlessDocument[] = this.documentList.documents.filter(d => this.documentList.selected.has(d.id))
|
||||||
if (this.selectionSpansPages) selectedDocuments = []
|
|
||||||
|
|
||||||
this.correspondents?.forEach(c => {
|
this.correspondents?.forEach(c => {
|
||||||
let selectedDocumentsWithCorrespondent: PaperlessDocument[] = selectedDocuments.filter(d => d.correspondent == c.id)
|
let selectedDocumentsWithCorrespondent: PaperlessDocument[] = selectedDocuments.filter(d => d.correspondent == c.id)
|
||||||
@ -81,7 +75,6 @@ export class BulkEditorComponent {
|
|||||||
get documentTypesToggleableItems(): ToggleableItem[] {
|
get documentTypesToggleableItems(): ToggleableItem[] {
|
||||||
let documentTypesToggleableItems = []
|
let documentTypesToggleableItems = []
|
||||||
let selectedDocuments: PaperlessDocument[] = this.documentList.documents.filter(d => this.documentList.selected.has(d.id))
|
let selectedDocuments: PaperlessDocument[] = this.documentList.documents.filter(d => this.documentList.selected.has(d.id))
|
||||||
if (this.selectionSpansPages) selectedDocuments = []
|
|
||||||
|
|
||||||
this.documentTypes?.forEach(dt => {
|
this.documentTypes?.forEach(dt => {
|
||||||
let selectedDocumentsWithDocumentType: PaperlessDocument[] = selectedDocuments.filter(d => d.document_type == dt.id)
|
let selectedDocumentsWithDocumentType: PaperlessDocument[] = selectedDocuments.filter(d => d.document_type == dt.id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user