mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
Filter hide fix (#2681)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
a93061286d
commit
2a2ff83924
@ -484,11 +484,11 @@ export function createModel (builder: Builder, options = { addApplication: true
|
|||||||
})
|
})
|
||||||
|
|
||||||
builder.mixin(chunter.class.ChunterMessage, core.class.Class, view.mixin.ClassFilters, {
|
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, {
|
builder.mixin(chunter.class.Channel, core.class.Class, view.mixin.ClassFilters, {
|
||||||
filters: ['private', 'archived']
|
filters: []
|
||||||
})
|
})
|
||||||
|
|
||||||
createAction(builder, {
|
createAction(builder, {
|
||||||
|
@ -485,7 +485,7 @@ export function createModel (builder: Builder): void {
|
|||||||
})
|
})
|
||||||
|
|
||||||
builder.mixin(contact.class.Contact, core.class.Class, view.mixin.ClassFilters, {
|
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, {
|
builder.mixin(contact.class.Channel, core.class.Class, view.mixin.AttributeFilter, {
|
||||||
|
@ -172,7 +172,7 @@ export function createModel (builder: Builder): void {
|
|||||||
})
|
})
|
||||||
|
|
||||||
builder.mixin(inventory.class.Product, core.class.Class, view.mixin.ClassFilters, {
|
builder.mixin(inventory.class.Product, core.class.Class, view.mixin.ClassFilters, {
|
||||||
filters: ['attachedTo', 'name', 'modifiedOn']
|
filters: ['attachedTo']
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -301,11 +301,11 @@ export function createModel (builder: Builder): void {
|
|||||||
})
|
})
|
||||||
|
|
||||||
builder.mixin(lead.class.Lead, core.class.Class, view.mixin.ClassFilters, {
|
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, {
|
builder.mixin(lead.mixin.Customer, core.class.Class, view.mixin.ClassFilters, {
|
||||||
filters: ['_class', 'description', 'city', 'modifiedOn']
|
filters: ['_class']
|
||||||
})
|
})
|
||||||
|
|
||||||
builder.createDoc(
|
builder.createDoc(
|
||||||
|
@ -734,15 +734,15 @@ export function createModel (builder: Builder): void {
|
|||||||
})
|
})
|
||||||
|
|
||||||
builder.mixin(recruit.mixin.Candidate, core.class.Class, view.mixin.ClassFilters, {
|
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, {
|
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, {
|
builder.mixin(recruit.class.Vacancy, core.class.Class, view.mixin.ClassFilters, {
|
||||||
filters: ['company', 'location', 'dueTo']
|
filters: []
|
||||||
})
|
})
|
||||||
|
|
||||||
createReviewModel(builder)
|
createReviewModel(builder)
|
||||||
|
@ -1265,15 +1265,15 @@ export function createModel (builder: Builder): void {
|
|||||||
})
|
})
|
||||||
|
|
||||||
builder.mixin(tracker.class.Issue, core.class.Class, view.mixin.ClassFilters, {
|
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, {
|
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, {
|
builder.mixin(tracker.class.Sprint, core.class.Class, view.mixin.ClassFilters, {
|
||||||
filters: ['status', 'project', 'lead', 'startDate', 'targetDate', 'modifiedOn', 'capacity']
|
filters: []
|
||||||
})
|
})
|
||||||
|
|
||||||
builder.createDoc(
|
builder.createDoc(
|
||||||
|
@ -56,7 +56,6 @@
|
|||||||
|
|
||||||
function buildFilterFromKey (_class: Ref<Class<Doc>>, key: string): KeyFilter | undefined {
|
function buildFilterFromKey (_class: Ref<Class<Doc>>, key: string): KeyFilter | undefined {
|
||||||
const attribute = hierarchy.getAttribute(_class, key)
|
const attribute = hierarchy.getAttribute(_class, key)
|
||||||
if (attribute.hidden) return
|
|
||||||
return buildFilterKey(hierarchy, _class, key, attribute)
|
return buildFilterKey(hierarchy, _class, key, attribute)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user