mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-12-04 10:14:24 +00:00
Enhancement: filter by file type (#8946)
This commit is contained in:
1 parent
880f08599a
commit
63bb3644f6
11 files changed
+175
-52
No files matched your search
@@ -62,6 +62,8 @@ export const FILTER_HAS_ANY_CUSTOM_FIELDS = 41
|
||||
|
||||
export const FILTER_CUSTOM_FIELDS_QUERY = 42
|
||||
|
||||
export const FILTER_MIME_TYPE = 47
|
||||
|
||||
export const FILTER_RULE_TYPES: FilterRuleType[] = [
|
||||
{
|
||||
id: FILTER_TITLE,
|
||||
@@ -354,6 +356,12 @@ export const FILTER_RULE_TYPES: FilterRuleType[] = [
|
||||
datatype: 'string',
|
||||
multi: false,
|
||||
},
|
||||
{
|
||||
id: FILTER_MIME_TYPE,
|
||||
filtervar: 'mime_type',
|
||||
datatype: 'string',
|
||||
multi: false,
|
||||
},
|
||||
]
|
||||
|
||||
export interface FilterRuleType {
|
||||
|
||||
Reference in new issue
Block a user