mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 05:55:09 +02:00
TSK-570: fix RelatedIssues (#2596)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
@@ -371,7 +371,9 @@
|
||||
{/if}
|
||||
{/each}
|
||||
{#if editorFooter}
|
||||
<Component is={editorFooter.footer} props={{ object, _class, ...editorFooter.props }} />
|
||||
<div class="step-tb-6">
|
||||
<Component is={editorFooter.footer} props={{ object, _class, ...editorFooter.props }} />
|
||||
</div>
|
||||
{/if}
|
||||
</Panel>
|
||||
{/if}
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
import { IntlString } from '@hcengineering/platform'
|
||||
import { getClient } from '@hcengineering/presentation'
|
||||
import { AnyComponent } from '@hcengineering/ui'
|
||||
import view, { AttributeModel, BuildModelKey, ViewOptions } from '@hcengineering/view'
|
||||
import { buildModel, getCategories, getPresenter, groupBy } from '../../utils'
|
||||
import { AttributeModel, BuildModelKey, ViewOptions } from '@hcengineering/view'
|
||||
import { buildModel, getCategories, getPresenter, groupBy, getAdditionalHeader } from '../../utils'
|
||||
import { noCategory } from '../../viewOptions'
|
||||
import ListCategory from './ListCategory.svelte'
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
})
|
||||
|
||||
const client = getClient()
|
||||
const hierarchy = client.getHierarchy()
|
||||
|
||||
let itemModels: AttributeModel[]
|
||||
|
||||
@@ -78,18 +77,7 @@
|
||||
return res
|
||||
}
|
||||
|
||||
$: extraHeaders = getAdditionalHeader(_class)
|
||||
|
||||
function getAdditionalHeader (_class: Ref<Class<Doc>>): AnyComponent[] | undefined {
|
||||
const clazz = hierarchy.getClass(_class)
|
||||
let mixinClazz = hierarchy.getClass(_class)
|
||||
let presenterMixin = hierarchy.as(clazz, view.mixin.ListHeaderExtra)
|
||||
while (presenterMixin.presenters === undefined && mixinClazz.extends !== undefined) {
|
||||
presenterMixin = hierarchy.as(mixinClazz, view.mixin.ListHeaderExtra)
|
||||
mixinClazz = hierarchy.getClass(mixinClazz.extends)
|
||||
}
|
||||
return presenterMixin.presenters
|
||||
}
|
||||
$: extraHeaders = getAdditionalHeader(client, _class)
|
||||
</script>
|
||||
|
||||
{#each categories as category, i}
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
{/each}
|
||||
{/if}
|
||||
{#if limited < items.length}
|
||||
<div class="counter">
|
||||
<div class="antiSection-header__counter ml-4">
|
||||
{limited}
|
||||
<div class="text-xs mx-1">/</div>
|
||||
{items.length}
|
||||
@@ -95,7 +95,7 @@
|
||||
}}
|
||||
/>
|
||||
{:else}
|
||||
<span class="counter">{items.length}</span>
|
||||
<span class="antiSection-header__counter ml-4">{items.length}</span>
|
||||
{/if}
|
||||
</div>
|
||||
{#if createItemDialog !== undefined && createItemLabel !== undefined}
|
||||
@@ -138,22 +138,4 @@
|
||||
.row:not(:last-child) {
|
||||
border-bottom: 1px solid var(--accent-bg-color);
|
||||
}
|
||||
|
||||
.counter {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
flex-shrink: 0;
|
||||
margin-left: 1rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
min-width: 1.325rem;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
line-height: 1rem;
|
||||
color: var(--accent-color);
|
||||
background-color: var(--body-color);
|
||||
border: 1px solid var(--divider-color);
|
||||
border-radius: 1rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
bind:this={elem}
|
||||
class="listGrid antiList__row row gap-2 flex-grow"
|
||||
class:checking={checked}
|
||||
class:mListGridFixed={selected}
|
||||
class:mListGridSelected={selected}
|
||||
on:contextmenu
|
||||
on:focus
|
||||
|
||||
Reference in New Issue
Block a user