mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 03:37:43 +02:00
TSK-98 Add doneState to LeadsTable (#2075)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,7 @@ Platform:
|
||||
Leads:
|
||||
|
||||
- Add filters
|
||||
- Added "done state" to leads popup table and customer display
|
||||
|
||||
Tracker:
|
||||
|
||||
|
||||
@@ -31,11 +31,16 @@
|
||||
|
||||
<div class="applications-container">
|
||||
<div class="flex-row-center">
|
||||
<div class="title">Leads</div>
|
||||
<div class="title"><Label label={lead.string.Leads} /></div>
|
||||
<CircleButton icon={IconAdd} size={'small'} selected on:click={createLead} />
|
||||
</div>
|
||||
{#if leads !== undefined && leads > 0}
|
||||
<Table _class={lead.class.Lead} config={['', '$lookup.state']} query={{ attachedTo: objectId }} {loadingProps} />
|
||||
<Table
|
||||
_class={lead.class.Lead}
|
||||
config={['', '$lookup.state', '$lookup.doneState']}
|
||||
query={{ attachedTo: objectId }}
|
||||
{loadingProps}
|
||||
/>
|
||||
{:else}
|
||||
<div class="flex-col-center mt-5 createapp-container">
|
||||
<div class="text-sm content-dark-color mt-2">
|
||||
|
||||
@@ -21,4 +21,8 @@
|
||||
export let value: Customer
|
||||
</script>
|
||||
|
||||
<Table _class={leads.class.Lead} config={['', '$lookup.state']} query={{ attachedTo: value._id }} />
|
||||
<Table
|
||||
_class={leads.class.Lead}
|
||||
config={['', '$lookup.state', '$lookup.doneState']}
|
||||
query={{ attachedTo: value._id }}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user