mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 13:47:26 +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
|
- Allow to configure vacancy table
|
||||||
|
|
||||||
|
Leads:
|
||||||
|
|
||||||
|
- Fix customer table leads column
|
||||||
|
|
||||||
## 0.6.22
|
## 0.6.22
|
||||||
|
|
||||||
Platform:
|
Platform:
|
||||||
|
@ -127,13 +127,7 @@ export function createModel (builder: Builder): void {
|
|||||||
builder.createDoc(view.class.Viewlet, core.space.Model, {
|
builder.createDoc(view.class.Viewlet, core.space.Model, {
|
||||||
attachTo: lead.mixin.Customer,
|
attachTo: lead.mixin.Customer,
|
||||||
descriptor: view.viewlet.Table,
|
descriptor: view.viewlet.Table,
|
||||||
config: [
|
config: ['', '$lookup._class', 'leads', 'modifiedOn', '$lookup.channels'],
|
||||||
'',
|
|
||||||
'$lookup._class',
|
|
||||||
{ key: 'leads', presenter: lead.component.LeadsPresenter, label: lead.string.Leads },
|
|
||||||
'modifiedOn',
|
|
||||||
'$lookup.channels'
|
|
||||||
],
|
|
||||||
hiddenKeys: ['name']
|
hiddenKeys: ['name']
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -176,6 +170,10 @@ export function createModel (builder: Builder): void {
|
|||||||
presenter: lead.component.LeadPresenter
|
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, {
|
builder.mixin(lead.class.Lead, core.class.Class, view.mixin.CollectionEditor, {
|
||||||
editor: lead.component.Leads
|
editor: lead.component.Leads
|
||||||
})
|
})
|
||||||
|
@ -19,13 +19,14 @@
|
|||||||
import LeadsPopup from './LeadsPopup.svelte'
|
import LeadsPopup from './LeadsPopup.svelte'
|
||||||
import leads from '../plugin'
|
import leads from '../plugin'
|
||||||
|
|
||||||
export let value: Customer
|
export let value: number
|
||||||
|
export let object: Customer
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if value.leads && value.leads > 0}
|
{#if value && value > 0}
|
||||||
<Tooltip label={leads.string.Leads} component={LeadsPopup} props={{ value }}>
|
<Tooltip label={leads.string.Leads} component={LeadsPopup} props={{ value: object }}>
|
||||||
<div class="sm-tool-icon">
|
<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>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user