Filter hide fix (#2681)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-02-22 21:24:26 +06:00 committed by GitHub
parent a93061286d
commit 2a2ff83924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 13 deletions

View File

@ -484,11 +484,11 @@ export function createModel (builder: Builder, options = { addApplication: true
})
builder.mixin(chunter.class.ChunterMessage, core.class.Class, view.mixin.ClassFilters, {
filters: ['space', 'modifiedOn', 'createBy', '_class']
filters: ['space', '_class']
})
builder.mixin(chunter.class.Channel, core.class.Class, view.mixin.ClassFilters, {
filters: ['private', 'archived']
filters: []
})
createAction(builder, {

View File

@ -485,7 +485,7 @@ export function createModel (builder: Builder): void {
})
builder.mixin(contact.class.Contact, core.class.Class, view.mixin.ClassFilters, {
filters: ['_class', 'city', 'modifiedOn']
filters: ['_class']
})
builder.mixin(contact.class.Channel, core.class.Class, view.mixin.AttributeFilter, {

View File

@ -172,7 +172,7 @@ export function createModel (builder: Builder): void {
})
builder.mixin(inventory.class.Product, core.class.Class, view.mixin.ClassFilters, {
filters: ['attachedTo', 'name', 'modifiedOn']
filters: ['attachedTo']
})
}

View File

@ -301,11 +301,11 @@ export function createModel (builder: Builder): void {
})
builder.mixin(lead.class.Lead, core.class.Class, view.mixin.ClassFilters, {
filters: ['attachedTo', 'title', 'assignee', 'state', 'doneState', 'modifiedOn']
filters: ['attachedTo']
})
builder.mixin(lead.mixin.Customer, core.class.Class, view.mixin.ClassFilters, {
filters: ['_class', 'description', 'city', 'modifiedOn']
filters: ['_class']
})
builder.createDoc(

View File

@ -734,15 +734,15 @@ export function createModel (builder: Builder): void {
})
builder.mixin(recruit.mixin.Candidate, core.class.Class, view.mixin.ClassFilters, {
filters: ['_class', 'title', 'source', 'city', 'skills', 'modifiedOn', 'onsite', 'remote', 'applications']
filters: ['_class']
})
builder.mixin(recruit.class.Applicant, core.class.Class, view.mixin.ClassFilters, {
filters: ['attachedTo', 'space', 'assignee', 'state', 'doneState', 'modifiedOn']
filters: ['attachedTo']
})
builder.mixin(recruit.class.Vacancy, core.class.Class, view.mixin.ClassFilters, {
filters: ['company', 'location', 'dueTo']
filters: []
})
createReviewModel(builder)

View File

@ -1265,15 +1265,15 @@ export function createModel (builder: Builder): void {
})
builder.mixin(tracker.class.Issue, core.class.Class, view.mixin.ClassFilters, {
filters: ['status', 'priority', 'assignee', 'project', 'sprint', 'estimation', 'dueDate', 'modifiedOn']
filters: []
})
builder.mixin(tracker.class.IssueTemplate, core.class.Class, view.mixin.ClassFilters, {
filters: ['priority', 'assignee', 'project', 'sprint', 'modifiedOn']
filters: []
})
builder.mixin(tracker.class.Sprint, core.class.Class, view.mixin.ClassFilters, {
filters: ['status', 'project', 'lead', 'startDate', 'targetDate', 'modifiedOn', 'capacity']
filters: []
})
builder.createDoc(

View File

@ -56,7 +56,6 @@
function buildFilterFromKey (_class: Ref<Class<Doc>>, key: string): KeyFilter | undefined {
const attribute = hierarchy.getAttribute(_class, key)
if (attribute.hidden) return
return buildFilterKey(hierarchy, _class, key, attribute)
}