TSK-98 Add doneState to LeadsTable (#2075)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2022-06-15 18:58:04 +07:00
committed by GitHub
parent 71be3b9b7c
commit 08414af755
3 changed files with 13 additions and 3 deletions
+1
View File
@@ -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 }}
/>