mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Hide it for tags any
[ci skip]
This commit is contained in:
parent
eadcc6ba2e
commit
85737029ff
@ -70,10 +70,17 @@ export class FilterableDropdownSelectionModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private setNullItem() {
|
private setNullItem() {
|
||||||
|
if (this.manyToOne && this.logicalOperator === LogicalOperator.Or) {
|
||||||
|
if (this._items[0]?.id === null) {
|
||||||
|
this._items.shift()
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const item = {
|
const item = {
|
||||||
name: $localize`:Filter drop down element to filter for documents with no correspondent/type/tag assigned:Not assigned`,
|
name: $localize`:Filter drop down element to filter for documents with no correspondent/type/tag assigned:Not assigned`,
|
||||||
id:
|
id:
|
||||||
this.intersection === Intersection.Include
|
this.manyToOne || this.intersection === Intersection.Include
|
||||||
? null
|
? null
|
||||||
: NEGATIVE_NULL_FILTER_VALUE,
|
: NEGATIVE_NULL_FILTER_VALUE,
|
||||||
}
|
}
|
||||||
@ -265,6 +272,7 @@ export class FilterableDropdownSelectionModel {
|
|||||||
|
|
||||||
set logicalOperator(operator: LogicalOperator) {
|
set logicalOperator(operator: LogicalOperator) {
|
||||||
this.temporaryLogicalOperator = operator
|
this.temporaryLogicalOperator = operator
|
||||||
|
this.setNullItem()
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleOperator() {
|
toggleOperator() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user