mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Customers doesn't show leads per customer (#1963)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
c6ff5f19ec
commit
6470851b78
@ -14,6 +14,10 @@ HR:
|
||||
|
||||
- Allow to configure vacancy table
|
||||
|
||||
Leads:
|
||||
|
||||
- Fix customer table leads column
|
||||
|
||||
## 0.6.22
|
||||
|
||||
Platform:
|
||||
|
@ -127,13 +127,7 @@ export function createModel (builder: Builder): void {
|
||||
builder.createDoc(view.class.Viewlet, core.space.Model, {
|
||||
attachTo: lead.mixin.Customer,
|
||||
descriptor: view.viewlet.Table,
|
||||
config: [
|
||||
'',
|
||||
'$lookup._class',
|
||||
{ key: 'leads', presenter: lead.component.LeadsPresenter, label: lead.string.Leads },
|
||||
'modifiedOn',
|
||||
'$lookup.channels'
|
||||
],
|
||||
config: ['', '$lookup._class', 'leads', 'modifiedOn', '$lookup.channels'],
|
||||
hiddenKeys: ['name']
|
||||
})
|
||||
|
||||
@ -176,6 +170,10 @@ export function createModel (builder: Builder): void {
|
||||
presenter: lead.component.LeadPresenter
|
||||
})
|
||||
|
||||
builder.mixin(lead.class.Lead, core.class.Class, view.mixin.CollectionPresenter, {
|
||||
presenter: lead.component.LeadsPresenter
|
||||
})
|
||||
|
||||
builder.mixin(lead.class.Lead, core.class.Class, view.mixin.CollectionEditor, {
|
||||
editor: lead.component.Leads
|
||||
})
|
||||
|
@ -19,13 +19,14 @@
|
||||
import LeadsPopup from './LeadsPopup.svelte'
|
||||
import leads from '../plugin'
|
||||
|
||||
export let value: Customer
|
||||
export let value: number
|
||||
export let object: Customer
|
||||
</script>
|
||||
|
||||
{#if value.leads && value.leads > 0}
|
||||
<Tooltip label={leads.string.Leads} component={LeadsPopup} props={{ value }}>
|
||||
{#if value && value > 0}
|
||||
<Tooltip label={leads.string.Leads} component={LeadsPopup} props={{ value: object }}>
|
||||
<div class="sm-tool-icon">
|
||||
<span class="icon"><Icon icon={leads.icon.Lead} size={'small'} /></span> {value.leads}
|
||||
<span class="icon"><Icon icon={leads.icon.Lead} size={'small'} /></span> {value}
|
||||
</div>
|
||||
</Tooltip>
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user